(<connect wsc url logger options close-client! *conn *shutdown?)
(<tube-client url)
(<tube-client url options)
(<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.
(<ws-client-clj logger
url
on-error
on-disconnect
handle-rcv!
log-conn-failure?
*conn
*shutdown?)
(<ws-client-cljs logger
url
on-error
on-disconnect
handle-rcv!
log-conn-failure?
*conn
*shutdown?)
(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