LearnBoost / socket.io-spec

Specification for the Socket.IO Protocol (0.9)
http://socket.io
225 stars 22 forks source link

Namespaces add unnecessary complexity? #3

Open madari opened 13 years ago

madari commented 13 years ago

I think it would be a better idea to keep the feature set as simple as possible and focus on the quality instead. Let other people build more complex application-level stuff (e.g. namespaces) on top of the bare sockets.

Are you sure you want to implement "namespaces" in Socket.IO?

3rd-Eden commented 13 years ago

There are a few different usecases for namespaces. First the most common request is channels. People only want to broadcast or message a small section of the connected users. By implementing namespaces this will become possible.

There are already a few modules written ontop of Socket.IO, they all create there own connection with the server. So you have want to run Socket.IO normally + an abstraction you would have to create 2 persistent connections with the server and this is something we are trying to prevent.