switched to node from ratchet. After more research Node and socketio are more suitable for this project