events property

  1. @override
Stream<WebSocketEvent> get events
override

A Stream of WebSocketEvent received from the peer.

Data received by the peer will be delivered as a TextDataReceived or BinaryDataReceived.

If a CloseReceived event is received then the Stream will be closed. A CloseReceived event indicates either that:

Errors will never appear in this Stream.

Implementation

@override
Stream<WebSocketEvent> get events => _events.stream;