Replies: 2 comments
-
|
Socket.IO doesn't expose a "route this request into me" API directly, but you can wire it up to a raw Node.js 1. Attach to a raw
|
Beta Was this translation helpful? Give feedback.
-
|
The middleware does get me most of the way there with After exploring the source code, I determined that I could seamlessly call io.attach for each http server. The only place this matters is when What I ended up doing was prepending a request listener to each http server after calling |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom server implementation with bespoke routing. How can I route requests into socket.io once I'm done with all the pre-calculations? The documentation has examples for binding to ten+ different servers but it doesn't say how to just route requests into it manually. Obviously the fallback to long polling would have to be handled differently.
Beta Was this translation helpful? Give feedback.
All reactions