Liking cljdoc? Tell your friends :D

aerial.hanasu.server


hanasu-handlersclj

(hanasu-handlers & {:keys [uris] :or {uris ["/ws"]}})
source

on-closeclj

(on-close ws status)
source

on-openclj

(on-open ws)
source

receiveclj

(receive ws msg)
source

send-msgclj

(send-msg ws
          msg
          &
          {:keys [encode noenvelope] :or {encode :binary noenvelope false}})

Send a message 'msg' to client at connection 'ws'. Message will be encoded according to 'encode'. If 'noenvelope' is true, then 'msg' will not be wrapped in a standard hanasu envelope and will be sent as is.

Send a message 'msg' to client at connection 'ws'. Message will be
encoded according to 'encode'. If 'noenvelope' is true, then 'msg' will not be wrapped in a standard hanasu envelope and will be sent as is.
sourceraw docstring

start-serverclj

(start-server port
              &
              {:keys [main-handler uris threads bufsize]
               :or {bufsize 100 threads 32 uris ["/ws"]}})
source

stop-serverclj

(stop-server)
source

ws-handlerclj

(ws-handler request)
source

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

× close