Liking cljdoc? Tell your friends :D

deercreeklabs.tube.client


<connectclj/s

(<connect wsc url options *handle-rcv *close-client connected-ch)

<tube-clientclj/s≠

clj
(<tube-client url connect-timeout-ms)
(<tube-client url connect-timeout-ms options)
cljs
(<tube-client G__17266 G__17267)
(<tube-client G__17271 G__17272 G__17273)

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

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

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

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

<ws-client*clj/s

(<ws-client* & args)

<ws-client-cljclj

(<ws-client-clj logger
                url
                connected-ch
                on-error
                *handle-rcv
                *close-client
                log-conn-failure?)

<ws-client-cljscljs

(<ws-client-cljs logger
                 url
                 connected-ch
                 on-error
                 *handle-rcv
                 *close-client
                 log-conn-failure?)

default-keepalive-secsclj/s


ITubeClientclj/s≠protocol

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