Liking cljdoc? Tell your friends :D

slipway.websockets

The Websockets interface and related utility functions.

Derived from:

The Websockets interface and related utility functions.

Derived from:
  * https://github.com/sunng87/ring-jetty9-adapter/blob/master/src/ring/adapter/jetty9/websocket.clj
raw docstring

upgrade-request?clj

(upgrade-request? {:keys [headers]})

upgrade-responseclj

(upgrade-response ws-handler)

upgrade-response?clj

(upgrade-response? {:keys [status ws] :as resp})

WebSocketPingcljprotocol

-ping!clj

(-ping! x ws)

WebSocketscljprotocol

close!clj

(close! this)
(close! this status-code reason)

connected?clj

(connected? this)

idle-timeout!clj

(idle-timeout! this ms)

ping!clj

(ping! this)
(ping! this msg)

remote-addrclj

(remote-addr this)

req-ofclj

(req-of this)

send!clj

(send! this msg)
(send! this msg callback)

WebSocketSendcljprotocol

-send!clj

(-send! x ws)
(-send! x ws callback)

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

× close