【发布时间】:2011-06-12 05:32:07
【问题描述】:
如何在套接字连接时最好地发送附加数据?
客户:
socket.on('connect',function(){
//I'd like set some values and pass them up to the node server.
});
Node.js 服务器:
io.on('connection', function(client){
//I'd like to get the data here.
});
例如发送用户名或电子邮件地址等
【问题讨论】: