Ratchet icon indicating copy to clipboard operation
Ratchet copied to clipboard

Messages within PHP Class

Open sidneylopes opened this issue 3 years ago • 1 comments

I have a Message class that, among some things, registers messages to my MySQL db. When someone enters a chat room, I register an entry message, something like "User has entered the room". My problem is that this message doesn't travel through the Websocket, therefore it doesn't appear to other users unless they refresh the page. Is there a way for me to do send this message to the Websocket through my PHP Class?

sidneylopes avatar Feb 08 '22 14:02 sidneylopes

Check out the Push example in the docs http://socketo.me/docs/push

gwrey avatar Feb 08 '22 17:02 gwrey