node.js - Socket.IO - how do I close socket with socketID in socket.io 1.3.6? -
i developing application of two-way communication in socketio.
i using following method send specific user.
io.to(socket.id).json.emit('message', message);
how close socket socketid in socket.io 1.3.6?
to borrow wisdom.
you can use:
io.sockets.connected[socketid].disconnect();
Comments
Post a Comment