-
Is there any concept of sending a message to a specific subscriber/group within this? Or is that on the roadmap at all? Also - It looks like the example is slightly wrong here:
I believe it needs to be:
If this doesn't make sense, I was hoping to have the same topics (chat_messages, events, etc) for various user levels. (guest, user, admin). So they would subscribe to /admin/chat_messages and get chat messages from all topics, whereas users would get messages from only the users channel. Hopefully that makes sense. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @IppSec :) TL;DR - sure simply have the 'specific' clients / group members subscribe to the same unique topic (which you can also protect with access-control tokens) There is no current first-class-citizen concept like the direct messages you're suggesting; since this is a pub/sub pattern solution, after all ;-). That being said if you want to create something like that on-top of the pub/sub - it would be very easy; simply have the two direct parties subscribe to the same topic, for example the topic can be "{user-id-1}:{user-id-2}", you can also have the server secure that direct channel for only the allowed members through the recently added topic JWT restriction feature (See If you want a direct 1x1 communication without a server I suggest you take a look at the underlaying fasti-websocket-rpc package. I think you're correct about |
Beta Was this translation helpful? Give feedback.
Hey @IppSec :)
TL;DR - sure simply have the 'specific' clients / group members subscribe to the same unique topic (which you can also protect with access-control tokens)
There is no current first-class-citizen concept like the direct messages you're suggesting; since this is a pub/sub pattern solution, after all ;-).
That being said if you want to create something like that on-top of the pub/sub - it would be very easy; simply have the two direct parties subscribe to the same topic, for example the topic can be "{user-id-1}:{user-id-2}", you can also have the server secure that direct channel for only the allowed members through the recently added topic JWT restriction feature (See
tests/s…