Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & browser support, integration tests, beautification & more.
728
stars
264
forks
source link
Unecesarry ping when WebSocket is not ready #384
Closed
dutu closed 5 months ago
WebsocketClient
sends unncesarryping
andpong
when WebSocket exists, but it's not ready . It results in unnecesarry errors like:This situation can be avoided by testing
readyState
to beOPEN
before sending theping
andpong
.