Closed Tindtily closed 4 months ago
Is this a normal phenomenon?
Oh interesting, you've successfully managed to send raw ping/pong frames? I hadn't considered just sending them as hex for some reason. How come you've closed this? Did you get it working?
Oh interesting, you've successfully managed to send raw ping/pong frames? I hadn't considered just sending them as hex for some reason. How come you've closed this? Did you get it working?
The chrome process ping and pong natively,and no need to process them manually. So you can consider that the related code in your project can be removed when used in browser runtime.
Since I no longer need to do this manually, I closed the issue
https://github.com/tiagosiebler/binance/blob/2bb5172782e11af60ce0eb704301a524043542ca/src/websocket-client.ts#L300
for browser, i replaced
with the follow code
the ping and pong works, but the socket connection break and reconnected every 10000ms(options.pingInterval)