onClosed method
Implementation
@override
void onClosed(CloseCode code, WebSocketChannel webSocket) {
_reconnect();
_timer?.cancel();
_timer = null;
}
@override
void onClosed(CloseCode code, WebSocketChannel webSocket) {
_reconnect();
_timer?.cancel();
_timer = null;
}