You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two different streams im trying connecting my client using the standard WebSocket API (I have no libraries imported).
In Deno the connections always die after a couple of minutes... in Chrome Browser they dont. Using the exact same code. I have not tested in a third web stream but I believe its no coincidence.
Testing code:
let connection = new WebSocket('wss://stream.binance.com:9443/ws/btcbrl@trade');
connection.onmessage = (message) => console.log(new Date(), 'msg received');
setInterval(() => console.log('idle'), 30000); // So Deno dont closes?
In one manual they mention to kill any connections that dont answer pings for 3 minutes, hypothesis one.
I have noticed if you dont 'setInterval' or wait for something deno closes the application after some time without provocation... maybe its not a ping issue but Deno itself doing something to the websocket (while the process is still running and the socket receiving msgs) believing its idle? hypothesis two
The text was updated successfully, but these errors were encountered:
elizeuangelo
changed the title
Websocket API dying, maybe not answering pings
Websocket API dying, Deno is closing it OR ping issue?
Jan 3, 2021
elizeuangelo
changed the title
Websocket API dying, Deno is closing it OR ping issue?
Websocket API dying on Deno but not on Chrome
Jan 3, 2021
There are two different streams im trying connecting my client using the standard WebSocket API (I have no libraries imported).
In Deno the connections always die after a couple of minutes... in Chrome Browser they dont. Using the exact same code. I have not tested in a third web stream but I believe its no coincidence.
Testing code:
In one manual they mention to kill any connections that dont answer pings for 3 minutes, hypothesis one.
I have noticed if you dont 'setInterval' or wait for something deno closes the application after some time without provocation... maybe its not a ping issue but Deno itself doing something to the websocket (while the process is still running and the socket receiving msgs) believing its idle? hypothesis two
The text was updated successfully, but these errors were encountered: