Liking cljdoc? Tell your friends :D

ring.middleware.websocket-keepalive


websocket-keepalive-responseclj

(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.
sourceraw docstring

wrap-websocket-keepaliveclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close