Is there a way to change the timeout Meteor handles for dropped connections?
Use case: We have a server, connected to several clients. Once the connection drops on a client, for example by pulling out the ethernet cable, we want to reflect that the client has gone offline. However, since the connection timeout seems to be about 30 seconds, it takes about this long for the server to notice the disconnection and put the client as offline.
Things we have tried: - Changing the heartbeat rate on the clients, which works for the clients, as they drop the connection sooner. This does not affect behaviour on the server though, as the server still waits about 30 seconds to call the connection drop.
- Implementing our own heartbeat method, which has a 3 second interval, to detect connection drops. This however leads to a whole lot of extra code for something I'm expecting to be configurable.
I've been unable to find anything in the documentation in regards to decreasing the timeout for connections.