推送消息的代码是这样的 $client = stream_socket_client('tcp://127.0.0.1:5248', $errno, $errmsg, 1,STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT); fwrite($client, json_encode($send_data)."\n"); 作为服务器的监听52...