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
Tag: reactphp
How to connect wss via ReactPHP components
I have a URI that works well with a js implementation, built as: “wss://domain” When I want to implement a subscriber for this socket as below: $loop = Factory::create(); $…