see install_deps.sh
to get dependencies
run php server.php
to start the server.
run node client.js
to start the client.
I do not understand why the server prints "onOpen" immediately followed by "onClose" and the client never prints "Connection opened."