-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] SocketIONamespace missed method getRoomOperations #162
Comments
и ещё, я не уверен, что SocketIOServer.getRoomOperations работает корректно |
Если смотреть на ориги��альный socket.io-server, то: https://github.com/Automattic/socket.io/blob/master/lib/index.js#L50 https://github.com/Automattic/socket.io/blob/master/lib/index.js#L361 |
в чем проблема? |
Значит, что отправка в комнату сообщения из сервера должна работать также как из namespace '/', а сейчас, как я вижу по коду собираются комнаты по всем namespace |
проблема в использовании NamespacesHub.getRoomClients в SocketIOServer.getRoomOperations |
в Namespace.roomClients только клиенты от этого namespace |
получается, что Namespace.getRoomClients работает верно |
Да, Namespace.getRoomClients работает верно, но в SocketIOServer вот что: SocketIOServer:
NamespaceHub:
|
т.е. ты предлагаешь пределать чтобы SocketIOServer.getRoomOperations работал только с default namespace-ом? |
Да, оригинальный сервер работает именно так. |
а как по всем namespace-ам рассылать тогда? |
определить новую операцию, если это имеет смысл... в оригинальном сервере этого нет. |
Guys, for the rest of the mortals would you consider please posting in English. If not, may I ask you to exchange private e-mails? Thank you very much |
Russian is international language... ok. Problem in "SocketIOServer.getRoomOperations". Current implementation allows to sent message in target rooms of all namespaces. But in original js socket.io "Server.in" allows to sent message in room of '/' namespace. I think this is bug. |
in spec http://socket.io/docs/rooms-and-namespaces/
The text was updated successfully, but these errors were encountered: