How to use PubSub from a PHP client

Websockets are not raw TCP, which is what you’re doing there with the socket_ calls. You’re missing the entire websocket handshake and protocol wrapping.

1 Like