I\'ve currently got a web socket server running and working with Ratchet PHP. I\'m not at the stage where I want external scripts to communicate with my server. I can successful
You have this line in your pull.php:
echo $socket->recv();
Push socket is for sending messages, not receiving them. That's probably where the exception comes from.
Also: The first parameter of method on() on pull sockets should be 'message'.
on()
'message'
$pull->on('message', array($pusher, 'onPull'));