ratchet_client icon indicating copy to clipboard operation
ratchet_client copied to clipboard

Is there any function to create channel and send message only on that channel?

Open ravhirizaldi opened this issue 4 years ago • 1 comments

I am able to send message to all the connected clients but the problem is I don't want to send message to all the clients I just want to send the message to the clients who have subscribed the the particular channel in which the messages was sent.

can this library just that? or i must extend the function?

ravhirizaldi avatar Jan 02 '21 13:01 ravhirizaldi

Yes, you can do that, just custom the code in onMessage, if you connected to database, ajax can help you.

jakaprata avatar Jan 15 '21 11:01 jakaprata