error abstract method

FutureOr<void> error(
  1. Peer peer,
  2. Object? error
)

Hooks for websocket error.

Implementation

FutureOr<void> error(Peer peer, Object? error);