PHP WebSocket ZMQ - Chat Operation - Send data to specific user
问题 im working on a PHP project based on Symfony 2.2.11 and I installed the socketo related to the following tutorial http://socketo.me/docs/install to make my chat script working. ServerCommand.php // Code of the command line that starts the WebSocket server $oLoop = Factory::create(); // Listen for the web server to make a ZeroMQ push after an ajax request $oContext = new Context($oLoop); $oPull = $oContext->getSocket(\ZMQ::SOCKET_PULL); // LET IT 127.0.0.1 $oPull->bind('tcp://127.0.0.1:5555');