onError method

void onError(
  1. dynamic msg, [
  2. dynamic desc
])

Implementation

void onError(msg, [desc]) {
  writable = false;
  if (hasListeners('error')) {
    emit('error', {'msg': msg, 'desc': desc, 'type': 'TransportError'});
  } else {}
}