Timing out WebSocket Connection - Atmosphere/atmosphere GitHub Wiki

By default, a WebSocket connection will stay open for 5 minutes. To set a timeout, use the following in your web.xml

        <init-param>
            <param-name>org.atmosphere.websocket.maxIdleTime</param-name>
            <param-value>VALUE</param-value>
        </init-param>

The VALUE is in milliseconds.

⚠️ **GitHub.com Fallback** ⚠️