(proxy-ws-adapter {:keys [on-connect on-error on-text on-close on-bytes]
:or {on-connect no-op
on-error no-op
on-text no-op
on-close no-op
on-bytes no-op}})
(proxy-ws-handler {:keys [ring-handler ws-max-idle-time
ws-max-text-message-size]
:or {ws-max-idle-time 500000 ws-max-text-message-size 65536}
:as options})
Returns a Jetty websocket handler
Returns a Jetty websocket handler
(set-headers response headers)
Update a HttpServletResponse with a map of headers.
Update a HttpServletResponse with a map of headers.
(close! this)
(connected? this)
(idle-timeout! this ms)
(remote-addr this)
(req-of this)
(send! this msg)
(send! this msg callback)
(-send! x ws)
(-send! x ws callback)
How to encode content sent to the WebSocket clients
How to encode content sent to the WebSocket clients
(write-callback {:keys [write-failed write-success]
:or {write-failed no-op write-success no-op}})
(ws-handler {:keys [context-path allow-null-path-info?]
:or {allow-null-path-info? false}
:as options})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close