摘要:
客户端var socket = io.connect(host,options); io.on -> connect : socket.on('connect',function(){});当socket与后端成功建立链接后 -> connecting : socket.on('connecting',function(){});socket正在与服务器建立链接 -> disconnect : socket.on('disconnect',function(){});当与服务器断开链接s ... 阅读全文