Skip to content
Advertisement

Tag: ratchet

Ratchet client event loop wait for finish

I have the following test php code: The code mostly works, it connects to the websocket and prints messages on the command line that are sent through the websocket. Also when I send quit it stops the connection and the script ends. However the last echo in the script, the “the echo $reason” echo, is printed first thing the script

Closing a Ratchet IOServer

Is there a method of terminating IOServer’s loop? I’m using WebSockets as a hacky inter-app communication system (believe me, if I could use anything else, I would), but I can’t break out of the loop and continue my application after calling run() on IOServer. Do I need to subclass IOServer into TerminatableIOServer or does this feature already exist? Answer Call

Advertisement