Closed BlakeBrown closed 7 years ago
It's a long time that I don't touch Socket.io. I'm not quite sure if I could help here. Could you take a look on https://github.com/webpack/webpack-dev-server/issues/76 and https://stackoverflow.com/questions/33584724/how-to-use-socket-io-together-with-webpack-hot-middleware?
For dev you will have to proxy webpack dev server (https://github.com/webpack/webpack-dev-server/issues/283#issuecomment-162163329). For prod you will need to proxy via express (https://github.com/chimurai/http-proxy-middleware/blob/master/examples/websocket/index.js).
Please close unless you need any more help 😄
Thank you guys! I think that's enough to get me started :)
Feel free to close the issue!
Just curious how to go about integrating socket.io into this stack?
Socket.io docs say to use:
However, passing relayServer fails since it's a WebpackDevServer. Not sure how to resolve this while keeping HMR functional.