description

# addError abstract method

void addError(

1. Object error, [
2. StackTrace? stackTrace

])
override

Reports an error on this WebSocket.

This does not send an error event to the remote peer. WebSocket connections only transmit text and binary data frames.

If unhandled, the error may be reported as an uncaught asynchronous error.

## Implementation

    void addError(Object error, [StackTrace? stackTrace]);