synchronized boolean isWebSocketOpen() {
        return wsSession != null && wsSession.isOpen();
    }
Returns the max duration that a connection can be idle before being closed.

@return the max duration that a connection can be idle.
xmppserver/src/main/java/org/jivesoftware/openfire/websocket/WebSocketClientConnectionHandler.java