Closed dutu closed 8 months ago
WebsocketClient, before sending ping and pong, will make sure the WebSocket's readyState is OPEN. This will avoid unnecesarry errors when sending ping/pong while WebSocket is not ready (such as CONNECTING or CLOSING states).
WebsocketClient
readyState
OPEN
CONNECTING
CLOSING
Closes #384
Summary
WebsocketClient
, before sending ping and pong, will make sure the WebSocket'sreadyState
isOPEN
. This will avoid unnecesarry errors when sending ping/pong while WebSocket is not ready (such asCONNECTING
orCLOSING
states).Additional Information
Closes #384