remove method

void remove(
  1. dynamic socket
)

Removes a client. Called by each Socket.

Implementation

void remove(socket) {
  if (sockets.contains(socket)) {
    sockets.remove(socket);
  }
}