(<connect-ws host
port
path
timeout-ms
protocols-seq
raw-nio-ch
nio-ch
rcv-buf
on-conn-close
close!
*state)
(<rcv-loop nio-ch
rcv-buf
initial-ba
on-conn-close
on-close-frame
on-error
on-message
on-ping
on-pong
close!
*state)
(<read* nio-ch rcv-buf handle-ba on-conn-close close! *state)
(<read* nio-ch rcv-buf handle-ba on-conn-close close! *state timeout-ms)
(<read-bytes nio-ch rcv-buf on-conn-close close! *state)
(<wait-for-conn-closure code timeout-ms close! on-error *state)
(check-scheme scheme)
(make-raw-websocket {:keys [close-timeout-ms connect-timeout-ms max-payload-len
on-connect on-disconnect on-error on-message on-pong
protocols-seq url]})
(make-upgrade-req-ba host port path ws-key protocols-seq)
(send-data! msg-type data nio-ch max-payload-len *state)
(upgrade-info rsp-info expected-ws-accept)
(write-ba-to-nio-chan nio-ch ba *state)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close