nuclearace / Socket.IO-Client-Swift

socket.io-client for Swift
Other
361 stars 53 forks source link

joining multiple namespaces? #54

Open longbowww opened 9 years ago

longbowww commented 9 years ago

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?

nuclearace commented 9 years ago

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

nuclearace commented 9 years ago

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

markus138 commented 9 years ago

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 :)

nuclearace commented 9 years ago

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

nuclearace commented 9 years ago

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