close method

  1. @override
void close()
inherited

Called when the client's connection is closed

Implementation

@override
void close() {
  super.close();

  removeAllListeners();

  _subscription?.cancel();
  _subscription = null;

  _webSocket?.close();
  _webSocket = null;
}