Liking cljdoc? Tell your friends :D

com.deercreeklabs.talk2.utils


add-headerclj/s

(add-header headers line)

browser?clj/s

(browser?)

byte-array->codeclj/s

(byte-array->code ba)

byte-array->frame-header-mapclj/s

(byte-array->frame-header-map ba)

byte-array->frame-infoclj/s

(byte-array->frame-info ba)

byte-array->http-infoclj/s

(byte-array->http-info ba)

byte-array->intclj/s

(byte-array->int ba)

code->byte-arrayclj/s

(code->byte-array code)

current-time-msclj/s

(current-time-ms)

data->frame-byte-arraysclj/s

(data->frame-byte-arrays msg-type data mask? max-payload-len)

ex-msgclj/s

(ex-msg e)

ex-msg-and-stacktraceclj/s

(ex-msg-and-stacktrace e)

ex-stacktraceclj/s

(ex-stacktrace e)

floor-intclj/s

(floor-int n)

four-zeros-baclj/s


frame-header-map->byte-arrayclj/s

(frame-header-map->byte-array {:keys [fin? masking-key opcode payload-len]})
https://datatracker.ietf.org/doc/html/rfc6455#section-5.2
raw docstring

frame-info->byte-arrayclj/s

(frame-info->byte-array m)

get-long-payload-lenclj/s

(get-long-payload-len ba short-payload-len)

get-msg-typeclj/s

(get-msg-type data)

get-payload-startclj/s

(get-payload-start masked? short-payload-len)

go-logclj/smacro

(go-log & body)

go-log-helper*clj/smacro

(go-log-helper* ex-type body)

int->byte-arrayclj/s

(int->byte-array x)

int-powclj/s

(int-pow base exp)

jvm?clj/s

(jvm?)

mask-ws-payload!clj/s

(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.
raw docstring

max-ws-payload-lenclj/s


node?clj/s

(node?)

pprintclj/s

(pprint x)

pprint-strclj/s

(pprint-str x)

process-frame!clj/s

(process-frame! frame-info
                continuation-ba
                continuation-opcode
                on-close-frame
                on-message
                on-ping
                on-pong)

random-byte-arrayclj/s

(random-byte-array num-bytes)

round-intclj/s

(round-int n)

secure-random-byte-arrayclj/s

(secure-random-byte-array num-bytes)

str->intclj/s

(str->int s)

sym-mapclj/smacro

(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}
raw docstring

throw-too-large-payloadclj/s

(throw-too-large-payload payload-len)

ws-key->ws-accept-keyclj/s

(ws-key->ws-accept-key ws-key)

ws-key-constantclj/s

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close