Socket.IO-Client-Swift icon indicating copy to clipboard operation
Socket.IO-Client-Swift copied to clipboard

joining multiple namespaces?

Open longbowww opened this issue 10 years ago • 5 comments

is it somehow possible to join multiple namespaces?

€dit: at the same time i wondered (if you can join multiple) - how you can emit to the specific one then?

longbowww avatar May 29 '15 01:05 longbowww

Not at the moment, right now it only accepts messages from the namespace it's currently connected to.

nuclearace avatar May 29 '15 09:05 nuclearace

Is this possible with the JavaScript client? If so I can add that feature here.

nuclearace avatar May 29 '15 09:05 nuclearace

on the js client I can connect to multiple namespaces and then directly emit into every namespace like this:

var fooNsp = io.connect('/foo');
var barNsp = io.connect('/bar');
fooNsp.emit('some event', someData);
barNsp.emit('another event', someOtherData);

something like this for the iOS client would be nice :)

markus138 avatar Jun 01 '15 14:06 markus138

Those are actually 2 different socket clients. io is just the manager.

nuclearace avatar Jun 01 '15 15:06 nuclearace

Because I'm trying to do this with one client, and it's getting confusing.

nuclearace avatar Jun 01 '15 15:06 nuclearace