cors error in react with socket.io 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']});