triggerServerError abstract method

  1. @Deprecated('in 3.0.0. Use triggerServerClose() instead.')
void triggerServerError(
  1. Object error, [
  2. StackTrace? stackTrace
])
inherited

Cause the "server" to add an error to the stream.

In practice, this cannot happen. If an error is added to the stream on the server side, it will cause the connection to close, but it will not send the error and thus an error will not be received by the client. For this reason, this method has been deprecated. Use triggerServerClose instead.

Implementation

@Deprecated('in 3.0.0. Use triggerServerClose() instead.')
void triggerServerError(Object error, [StackTrace? stackTrace]);