destroy method

  1. @override
void destroy()
override

Implementation

@override
void destroy() {
  mWebSocketConnections.forEach((key, connection) {
    connection._channel?.sink.close(status.goingAway);
  });
  mWebSocketConnections.clear();
}