Asynchronous chat with websockets and reactPHP