不能处理这个断开事件,不知道为什么套接字它不发送到客户端/客户端不响应! 服务器 io.sockets.on('connection', function (socket) { socket.on('NewPlayer', function(data1) { online = online + 1; console.log('Online players : ' + online); console.log('New player connected : ' + data1); Players[data1] = data1; console.log(Players); }); socket.on('DelPlayer', function(data) { delete Players[data]; console.log(Players); console.log('Adios' + data); }); socket.on('disconnect', function () { socket.emit('disconnected'); online = online – 1; }); }); 客户 […]
我的SQL Server 2005不会因活动连接而恢复备份。 我该如何强制呢?