Liking cljdoc? Tell your friends :D

via.endpoint


broadcast!clj

(broadcast! endpoint message)

Asynchronously sends message to all connected clients

Asynchronously sends `message` to all connected clients
sourceraw docstring

connect!cljs

(connect! endpoint)
(connect! endpoint {:keys [params auto-reconnect max-reconnect-interval]})
source

connected?cljs

(connected? endpoint)
source

disconnect!clj/s≠

clj
(disconnect! endpoint & {:keys [client-id tag]})
cljs
(disconnect! endpoint)
source (clj)source (cljs)

disposeclj/s

(dispose endpoint key)
source (clj)source (cljs)

send!clj/s≠

clj
(send! endpoint
       message
       &
       {:keys [type client-id tag params] :or {type :message}})

Asynchronously sends message to the client for client-id

Asynchronously sends `message` to the client for `client-id`
cljs
(send! endpoint
       message
       &
       {:keys [type success-fn failure-fn timeout timeout-fn]
        :or {type :message}})
source (clj)source (cljs)raw docstring

subscribeclj/s

(subscribe endpoint callbacks)
source (clj)source (cljs)

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

× close