close method
Called when the client's connection is closed
Implementation
@override
void close() {
super.close();
removeAllListeners();
_subscription?.cancel();
_subscription = null;
_webSocket?.close();
_webSocket = null;
}
Called when the client's connection is closed
@override
void close() {
super.close();
removeAllListeners();
_subscription?.cancel();
_subscription = null;
_webSocket?.close();
_webSocket = null;
}