The demo application shows how to work with Ratchet php websocket library