onError

External Documentation

void onError(

  1. ErrorHandler handler
)

Registers a handler for error events

Implementation

void onError(ErrorHandler handler) =>
    _ws.on('error', ((JSAny error) => handler(error)).toJS);