Liking cljdoc? Tell your friends :D

deercreeklabs.tube.client


<connectclj/s

(<connect wsc url logger options close-client! *conn *shutdown?)

<tube-clientclj/s≠

clj
(<tube-client url)
(<tube-client url options)
cljs
(<tube-client G__20355)
(<tube-client G__20359 G__20360)

Inputs: ([url :- s/Str] [url :- s/Str options :- {(s/optional-key :compression-type) (s/enum :none :smart :deflate), (s/optional-key :connect-timeout-ms) s/Int, (s/optional-key :keep-alive-secs) s/Int, (s/optional-key :logger) (s/=> s/Any s/Keyword s/Str), (s/optional-key :log-conn-failure?) s/Bool, (s/optional-key :on-disconnect) (s/=> s/Any), (s/optional-key :on-rcv) (s/=> s/Any)}])

Will return a connected client or a closed channel (nil) on connection failure or timeout.

Inputs: ([url :- s/Str] [url :- s/Str options :- {(s/optional-key :compression-type) (s/enum :none :smart :deflate), (s/optional-key :connect-timeout-ms) s/Int, (s/optional-key :keep-alive-secs) s/Int, (s/optional-key :logger) (s/=> s/Any s/Keyword s/Str), (s/optional-key :log-conn-failure?) s/Bool, (s/optional-key :on-disconnect) (s/=> s/Any), (s/optional-key :on-rcv) (s/=> s/Any)}])

Will return a connected client or a closed channel (nil) on connection
 failure or timeout.
raw docstring

<ws-client-cljclj

(<ws-client-clj logger
                url
                on-error
                on-disconnect
                handle-rcv!
                log-conn-failure?
                *conn
                *shutdown?)

<ws-client-cljscljs

(<ws-client-cljs logger
                 url
                 on-error
                 on-disconnect
                 handle-rcv!
                 log-conn-failure?
                 *conn
                 *shutdown?)

default-keepalive-secsclj/s


ITubeClientclj/sprotocol

closeclj/s

(close this)
(close this code reason)

Close this tube

Close this tube

sendclj/s

(send this data)

Send binary bytes over this tube

Send binary bytes over this tube

start-keep-alive-loopclj/s

(start-keep-alive-loop conn keep-alive-secs *shutdown?)

TubeClientcljs

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

× close