如何检索php发送到socket.io的curl数据?

如何检索php发送到socket.io的curl数据?,socket.io,Socket.io,这是我的socket.io摘录 var httpServer = https.createServer(ssl, function(req,res) { console.log(req.method, req.url); }).listen(999); var io = require('socket.io').listen(httpServer,{log:false}); 现在,当我试图通过curl进行交流时 <?php function notifyNode($url, $

这是我的socket.io摘录

var httpServer = https.createServer(ssl, function(req,res) {
    console.log(req.method, req.url);
}).listen(999);
var io  = require('socket.io').listen(httpServer,{log:false});
现在,当我试图通过curl进行交流时

<?php
function notifyNode($url, $port) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
    curl_setopt($ch, CURLOPT_PORT, $port);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
    curl_setopt($ch, CURLOPT_POST, true);
    $data = array('a' => 'hellwo world', 'b' => 'zaza');
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    curl_exec($ch);
    curl_close($ch);
}    
notifyNode('https://example.com', 999);

您可以在没有express的情况下尝试此功能吗?