canSend property

bool get canSend

Returns true if the connection can send messages

Implementation

bool get canSend => this == WebSocketState.connected;