Replies: 4 comments 1 reply
-
according to the docs,
they also have a mechanism that checks the connection between the server and client, they use a pingInterval (which you can adjust) to send a packet then the client responds within back with a pong (the pingTimeout is what is used to timeout if over time). you can use .set to change these, ex: |
Beta Was this translation helpful? Give feedback.
-
no effect fixed disconnection every hour |
Beta Was this translation helpful? Give feedback.
-
Hi! There must be something between your client and your server that closes the connection after a given delay. What is your setup? That being said, temporary disconnections are expected and must be handled properly by your application. Reference: https://socket.io/docs/v4/troubleshooting-connection-issues/#problem-the-socket-gets-disconnected |
Beta Was this translation helpful? Give feedback.
-
client:"socket.io-client": "^4.6.1" service: "socket.io": "^4.6.1" transports: ['websocket'], others are default values,It's not like triggering because of delay, because it triggers every hour |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hhy does socket.io automatically disconnect after an hour
Beta Was this translation helpful? Give feedback.
All reactions