dispose method

  1. @override
void dispose()

Implementation

@override
void dispose() {
  _clientMap.forEach((id, socket) {
    socket.sink.close();
  });
  _clientMap.clear();
  _listenMap.clear();
  _stateMap.clear();
}