onError method

void onError(
  1. dynamic err
)

Handles a client error.

@api private

Implementation

void onError(err) {
  if (hasListeners('error')) {
    emit('error', err);
  }
}