remove method
void
remove(
- dynamic socket
Removes a socket. Called by each Socket
.
Implementation
void remove(socket) {
var i = sockets.indexOf(socket);
if (i >= 0) {
var nsp = sockets[i].nsp.name;
sockets.removeAt(i);
nsps.remove(nsp);
} else {}
}