(send message channel)
(send message channel callback)
(send message channel callback timeout)
(send-binary message channel)
(send-binary message channel callback)
(send-binary message channel callback timeout)
(send-text message channel)
(send-text message channel callback)
(send-text message channel callback timeout)
(ws-callback
{:keys [on-open listener] :or {on-open (constantly nil)} :as ws-opts})
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close