onError method

void onError(
  1. dynamic err
)

Called upon transport error

@api private

Implementation

void onError(err) {
  _logger.fine('socket error $err');
  priorWebsocketSuccess = false;
  emit('error', err);
  onClose('transport error', err);
}