(websocket-keepalive-response response)(websocket-keepalive-response response options)Adds a periodic ping to a WebSocket response; returns the response unaltered otherwise. See wrap-websocket-keepalive for the available options.
Adds a periodic ping to a WebSocket response; returns the response unaltered otherwise. See wrap-websocket-keepalive for the available options.
(wrap-websocket-keepalive handler)(wrap-websocket-keepalive handler options)Middleware that adds a periodic ping to WebSocket responses, in order to stop them from timing out. Takes the following options:
:period - the time in milliseconds between pings (default 30000) :executor - a custom ScheduledExecutorService to handle scheduling
Middleware that adds a periodic ping to WebSocket responses, in order to stop them from timing out. Takes the following options: :period - the time in milliseconds between pings (default 30000) :executor - a custom ScheduledExecutorService to handle scheduling
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |