Liking cljdoc? Tell your friends :D

websocket-server-lib.core


accept-web-socket-request-subprocessclj

(accept-web-socket-request-subprocess routing-fn
                                      client-socket
                                      header-map-with-body)

Work with established websocket connection

Work with established websocket connection
sourceraw docstring

client-socketsclj

source

decode-messageclj

(decode-message encoded-bytes key-array)

Decode message sent through websocket

https://tools.ietf.org/html/rfc6455#section-5.2

Decode message sent through websocket

https://tools.ietf.org/html/rfc6455#section-5.2
sourceraw docstring

encode-messageclj

(encode-message message & [first-byte user-agent])

Encoding message to send it through websocket

https://tools.ietf.org/html/rfc6455#section-5.2

Encoding message to send it through websocket

https://tools.ietf.org/html/rfc6455#section-5.2
sourceraw docstring

keep-alive-message-periodclj

source

main-threadclj

source

powclj

(pow value)

Square of value

Square of value
sourceraw docstring

read-till-fin-is-oneclj

(read-till-fin-is-one input-stream user-agent)

Read from input stream all messages till FIN bit has value 1 (one)

Read from input stream all messages till FIN bit has value 1 (one)
sourceraw docstring

runningclj

source

server-socketclj

source

start-serverclj

(start-server routing-fn & [port https-conf])

Start websocket server

Start websocket server
sourceraw docstring

stop-serverclj

(stop-server)

Stop server

Stop server
sourceraw docstring

thread-poolclj

source

thread-pool-sizeclj

source

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

× close