onError method
Handles the error from the WebSocket server
Implementation
void onError(String error) {
if (onErrorEvent != null) {
onErrorEvent!(error);
}
session.leaveSession();
}
Handles the error from the WebSocket server
void onError(String error) {
if (onErrorEvent != null) {
onErrorEvent!(error);
}
session.leaveSession();
}