(<connect wsc url options *handle-rcv *close-client connected-ch)
(<tube-client url connect-timeout-ms)
(<tube-client url connect-timeout-ms options)
(<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.
(<ws-client* & args)
(<ws-client-clj logger
url
connected-ch
on-error
*handle-rcv
*close-client
log-conn-failure?)
(<ws-client-cljs logger
url
connected-ch
on-error
*handle-rcv
*close-client
log-conn-failure?)
(close this)
(close this code reason)
Close this tube
Close this tube
(send this data)
Send binary bytes over this tube
Send binary bytes over this tube
(start-keep-alive-loop conn keep-alive-secs *shutdown?)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close