isSocketConnected property

bool get isSocketConnected

Whether the socket is connected

Implementation

bool get isSocketConnected => _socket != null && _socket!.connected;