(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.
(start-server port
&
{:keys [main-handler uris threads bufsize]
:or {bufsize 100 threads 32 uris ["/ws"]}})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close