addError abstract method

  1. @override
void addError(
  1. Object errorEvent, [
  2. StackTrace? stackTrace
])
override

Add an error to the sink. This will cause the WebSocket connection to close.

Implementation

@override
void addError(Object errorEvent, [StackTrace? stackTrace]);