我正在获取链接,但如何使用它。 http://nodejs.orgapitls.html#tls_class_tls_cleartextstream
答案 0 :(得分:0)
var io = require(“socket.io”)。listen(server);
io.sockets.on(“connection”,function(socket){
var address = socket.handshake.address;
console.log("New connection from " + address.address + ":" + address.port);
}