(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |