npx-socket with cors code example
Example: set cors for a react node application socket error
// add this on client side
const socket = openSocket('http://localhost:8000', , {transports: ['websocket']});
// add this on client side
const socket = openSocket('http://localhost:8000', , {transports: ['websocket']});