(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |