Changing disconnect time out in an already started server

We want to dinamically change the disconnect timeout parameter of the network driver in an already initialized server, so we can manage the periods of inactivity of the clients depending on the situation, thus preventing accidental disconnections.
8991508--1238077--transport_disconnect_timeout.PNG
We haven’t found anything related to this in the documentation, is it possible to do some like this?
Thanks.

Unfortunately, it is not possible to change these timeouts after initialization.

If you’re worried about “quiet” periods in the game causing an accidental disconnection, then I’d suggest configuring an appropriate timeout for heartbeats, which are sent automatically when nothing happens on a connection after some (configurable) time. Of course, that would not work if these “quiet” periods are due to users going offline. In such situations, I would recommend implementing a more robust reconnection mechanism. You can look at how Boss Room implements one for inspiration.

1 Like