connectionState property

WebSocketState get connectionState

Returns the current connection state.

Implementation

WebSocketState get connectionState =>
    _connection?.state ?? WebSocketState.initial;