Ratchet
Ratchet copied to clipboard
Messages within PHP Class
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?
Check out the Push example in the docs http://socketo.me/docs/push