Jetty10 impl of the Websockets API + handler.
Dervied from:
Jetty10 impl of the Websockets API + handler. Dervied from: * https://github.com/sunng87/ring-jetty9-adapter/blob/master/src/ring/adapter/jetty9/websocket.clj
(proxy-ws-adapter {:keys [on-connect on-error on-text on-close on-bytes on-ping
on-pong]
:or {on-connect no-op
on-error no-op
on-text no-op
on-close no-op
on-bytes no-op
on-ping no-op
on-pong no-op}})
(reify-ws-creator ws-fns)
(upgrade-websocket req res ws options)
(upgrade-websocket req
res
async-context
ws
{:keys [ws-max-idle-time ws-max-text-message-size]
:or {ws-max-idle-time 500000
ws-max-text-message-size 65536}})
(write-callback {:keys [write-failed write-success]
:or {write-failed no-op write-success no-op}})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close