events property

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

Stream<WebSocketEvent> get events;