Liking cljdoc? Tell your friends :D

ring.adapter.undertow.websocket


sendclj

(send message channel)
(send message channel callback)
(send message channel callback timeout)
source

send-binaryclj

(send-binary message channel)
(send-binary message channel callback)
(send-binary message channel callback timeout)
source

send-textclj

(send-text message channel)
(send-text message channel callback)
(send-text message channel callback timeout)
source

ws-callbackclj

(ws-callback
  {:keys [on-open listener] :or {on-open (constantly nil)} :as ws-opts})
source

ws-listenerclj

(ws-listener {:keys [on-message on-close on-close-message on-error]})

Default websocket listener

Takes a map of functions as opts: :on-message | fn taking map of keys :channel, :data :on-close-message | fn taking map of keys :channel, :message :on-error | fn taking map of keys :channel, :error

Each key defaults to no action

Default websocket listener

Takes a map of functions as opts:
:on-message         | fn taking map of keys :channel, :data
:on-close-message   | fn taking map of keys :channel, :message
:on-error           | fn taking map of keys :channel, :error

Each key defaults to no action
sourceraw docstring

ws-requestclj

(ws-request exchange headers callback)
source

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

× close