connected property

bool get connected

Returns true if the socket connection is connected

Implementation

bool get connected =>
    _ws?.innerWebSocket?.readyState == 1 &&
    connectionState == ConnectionState.connected;