Closed groboter closed 1 year ago
I too am finding my clients often randomly drop connection and immediate reconnect even when everything is pretty much idle. This happens in both my Electron Win10 app and on a Raspberry Pi's running node V13 with no frameworks. Seems like its platform agnostic for this issue to me.
My electron-react app(macOS) also disconnects randomly and establishes a new connection with a new sid.
I'm seeing the same issue (Angular + all websocket libs) after updating electron to the latest version with one of my users. They're constantly disconnecting/reconnect. Other users aren't as bad, but do seem to also experience the issue. The server reports that the client disconnected gracefully regardless of the web socket lib I'm running (signalr core and socket.io). I have noticed that if chrome is idle, the socket connection gets dropped. Not sure if that is related.
Other users aren't as bad, but do seem
Same here, backend api with nestjs
It's not a bug. The library is unfortunately very slow and unstable, I just ran some very basic benchmark with pub/sub (room) and as soon as I try to send too many requests per second, it starts freezing and then drops the connection after a minute or so.
I think the common denominator here is Electron.io honestly. I'm testing out the disabling of the backgroundThrottling as I suspect that causes the issue.
I think the common denominator here is Electron.io honestly. I'm testing out the disabling of the backgroundThrottling as I suspect that causes the issue.
Do you have some results with your tests?
For future readers:
I think this should now be fixed in latest versions:
Please reopen if needed.
Describe the bug I'm using socket.io in an Electron - Vue app to connect to a server running on Raspberry Pi.
But the connection is very unstable it connects and disconnects randomly. Sometimes the connection seems to be stable for a longer time in minutes and sometimes it toggles within seconds.
I have not a lot of experience in debugging and don't know how to find out what happens. I don't think that it is a network problem because I'm running only a few devices on my network (1 to 4 smartphones and computers) and I do not have other network problems.
The following errors are from a time window < 1 minute.
Client Errors
Server errors
To Reproduce
Server
Socket.IO client version:
x.y.z
Client
Client Dependecies
Server Dependecies
Expected behavior Connection should be persistent.
Platform: The client is running on WIN10 PC and the server on Raspberry Pi 4 using Raspian 10 (buster).