socket.io namespaces or rooms or both

2019-08-09 23:58发布

问题:

I am developing an App

1) There will be list of Emitters like "Emitter A", "Emitter B" (Web Browser/Mobile Device)

2) There will be a global Listener who listens to all Emitters Like "Global A" (Web Browser) Admin User

3) There will be specific Listener who will listen to only particular Emitter, Listener A should only listen to Emitter A, (listeners will be web browsers, mobile)

I hope i am able to explain you my problem,

Which will be the best way to achieve this with socket io