readyState property
dynamic
get
readyState
Implementation
get readyState {
if (_ws == null) {
return WS_READY_STATUS.CLOSED;
}
switch (_ws!.readyState) {
case WebSocket.open:
return WS_READY_STATUS.OPEN;
case WebSocket.closed:
return WS_READY_STATUS.CLOSED;
case WebSocket.closing:
return WS_READY_STATUS.CLOSING;
case WebSocket.connecting:
return WS_READY_STATUS.CONNECTING;
default:
return WS_READY_STATUS.CLOSED;
}
}