onError method

void onError(
  1. EventHandler handler
)

Implementation

void onError(EventHandler handler) {
  this.io.on('error', handler);
}