jos_valentin
jos_valentin2mo ago

Is there a way to change the time for waiting a player response when it has leave the room?

As I read in the docs, the server takes 5 seconds to wait for the client response before it disconnects him, during crashes, for some reason it takes the same time in android build, when quitting the application, is it possible to change this time?
4 Replies
kapa.ai
kapa.ai2mo ago
Hi @jos_valentin. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information in the knowledge sources, the server pings connected clients every five seconds, and if a connection is dropped (such as during a crash or abrupt quit), the server will disconnect the client after five seconds. This is the default behavior for handling client disconnects and is not documented as being configurable through any public API or server option in Normcore. There is no mention in the documentation of a way to change or configure this disconnect timeout period. The five-second interval appears to be a fixed part of Normcore's server logic for detecting dropped connections and cleaning up owned models accordingly. If you require a different timeout, you may need to contact NormalVR support or request this as a feature. I'm sorry, but the knowledge sources do not contain information about changing the disconnect timeout period for clients in Normcore. The five-second timeout is the only value referenced in the documentation, and no configuration option is described for altering it Architecture Common Questions. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@391444583034257420> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
maxweisel
maxweisel2mo ago
It’s not possible to change the timeout time Anything lower and folks with spotty connections would get disconnected, anything higher and you get users who freeze for too long if they quit the game not sure if the bug you were running into was pausing your app to debug and getting disconnected but we shipped a fix for that recently
jos_valentin
jos_valentinOP2mo ago
no, it was just while disconnecting on android, but we are handling it by calling Disconnect() on ApplicationPause to avoid the server from waiting the 5 seconds

Did you find this page helpful?