phpsocket.io 服务器代码 $socket->on('join', function ($room)use($socket){ $socket->join($room); $socket->room= $room; }); // when the client emits 'new message', this listens and ex...