The OpenD Programming Language

Config.timeoutFromInactivity

Amount of time to disconnect when there's no activity. Note that automatic pings will keep the connection alive; this timeout only occurs if there's absolutely nothing, including no responses to websocket ping frames. Since the default pingFrequency is only seconds, this one minute should never elapse unless the connection is actually dead.

The one thing to keep in mind is if your program is busy and doesn't check input, it might consider this a time out since there's no activity. The reason is that your program was busy rather than a connection failure, but it doesn't care. You should avoid long processing periods anyway though!

Meta

History

Added March 31, 2021 (included in dub version 9.4)