onError method
Implementation
void onError(Exception error) {
var map = VoltronMap();
map.push<String>('reason', error.toString());
_sendWebSocketEvent('onError', map);
mDisconnected = true;
}
void onError(Exception error) {
var map = VoltronMap();
map.push<String>('reason', error.toString());
_sendWebSocketEvent('onError', map);
mDisconnected = true;
}