(on-close ws status)
(on-open ws)
(receive ws msg)
(send-msg ws msg & {:keys [encode] :or {encode :binary}})
Send a message 'msg' to client at connection 'ws'. Message will be encoded according to 'encode'
Send a message 'msg' to client at connection 'ws'. Message will be encoded according to 'encode'
(start-server port
&
{:keys [uris threads bufsize]
:or {bufsize 100 threads 32 uris ["/ws"]}})
(stop-server)
(ws-handler request)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close