connectionStateStream property

Stream<WebSocketState> get connectionStateStream

Returns the stream of connection state changes.

Implementation

Stream<WebSocketState> get connectionStateStream =>
    _connection?.stateStream ?? const Stream.empty();