(add-header headers line)
(browser?)
(byte-array->code ba)
(byte-array->frame-header-map ba)
(byte-array->frame-info ba)
(byte-array->http-info ba)
(byte-array->int ba)
(code->byte-array code)
(current-time-ms)
(data->frame-byte-arrays msg-type data mask? max-payload-len)
(ex-msg e)
(ex-msg-and-stacktrace e)
(ex-stacktrace e)
(floor-int n)
(frame-header-map->byte-array {:keys [fin? masking-key opcode payload-len]})
https://datatracker.ietf.org/doc/html/rfc6455#section-5.2
(frame-info->byte-array m)
(get-long-payload-len ba short-payload-len)
(get-msg-type data)
(get-payload-start masked? short-payload-len)
(go-log & body)
(go-log-helper* ex-type body)
(int->byte-array x)
(int-pow base exp)
(jvm?)
(mask-ws-payload! key-ba ba)
Mutates the ba arg in place to avoid allocation costs, which are significant with large payloads.
Mutates the ba arg in place to avoid allocation costs, which are significant with large payloads.
(node?)
(pprint x)
(pprint-str x)
(process-frame! frame-info
continuation-ba
continuation-opcode
on-close-frame
on-message
on-ping
on-pong)
(random-byte-array num-bytes)
(round-int n)
(secure-random-byte-array num-bytes)
(str->int s)
(sym-map & syms)
Builds a map from symbols. Symbol names are turned into keywords and become the map's keys. Symbol values become the map's values. (let [a 1 b 2] (sym-map a b)) => {:a 1 :b 2}
Builds a map from symbols. Symbol names are turned into keywords and become the map's keys. Symbol values become the map's values. (let [a 1 b 2] (sym-map a b)) => {:a 1 :b 2}
(throw-too-large-payload payload-len)
(ws-key->ws-accept-key ws-key)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close