express.io icon indicating copy to clipboard operation
express.io copied to clipboard

Unable to update routes for existing connections

Open bpytlik opened this issue 12 years ago • 0 comments

I'd like my server to be able to dynamically create and destroy rooms as clients come and go from particular rooms. The clients always have a socket-io connection open. They do an http request that causes a room to get routed in io (let's assume it didn't already exist). Now when they try to join that room, they fail because that room isn't routed for them, because routes for sockets are only set once, when the socket is created. It seems like there should be a way to tell express.io that its routes have been updated and it needs to go adjust them for all existing sockets. (Ideally, the io.route function would take care of this automatically, but I'll settle for anything that provides the capability at all.)

bpytlik avatar Oct 29 '13 23:10 bpytlik