onError method

void onError(
  1. dynamic err
)

Called upon transport error.

Implementation

void onError(err) {
  onClose('transport error', err);
}