How can we send message to only connections which are subscribed to specific topic exmple/topic?
Below code is sending message to all connections, which are not subscribed to that topic, I would like to send message to only connections which are subscribed to exmple/topic :
Is there something available in Swoole or, Do I have to manage the state myself? like for example I can store in DB each new connection and then compare before sending.
How can we send message to only connections which are subscribed to specific topic
exmple/topic
?Below code is sending message to all connections, which are not subscribed to that topic, I would like to send message to only connections which are subscribed to
exmple/topic
:Is there something available in Swoole or, Do I have to manage the state myself? like for example I can store in DB each new connection and then compare before sending.