onError method

void onError(
  1. dynamic err
)

Handles an error. err error object

Implementation

void onError(err) {
  for (var socket in sockets) {
    socket.onError(err);
  }
  onClose('client error');
}