onError method

void onError(
  1. Exception error
)

Implementation

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