WebSocketSession.
| Modifier and Type | Method and Description |
|---|---|
| public void | disableHeartbeat()
Disable the SockJS heartbeat, presumably because a higher-level protocol has heartbeats enabled for the session already. |
| public long | getTimeSinceLastActive()
Return the time (in ms) since the session was last active, or otherwise if the session is new, then the time since the session was created. |
| disableHeartbeat | back to summary |
|---|---|
| public void disableHeartbeat() Disable the SockJS heartbeat, presumably because a higher-level protocol has heartbeats enabled for the session already. It is not recommended to disable this otherwise, as it helps proxies to know the connection is not hanging. | |
| getTimeSinceLastActive | back to summary |
|---|---|
| public long getTimeSinceLastActive() Return the time (in ms) since the session was last active, or otherwise if the session is new, then the time since the session was created. | |