(make-ws-listener ws-map)
Creates an Immutant listener (map) for a WebSocket connection. Note that on-text and on-binary will override each other in this implementation, and you should use on-message if you need a single handler to fulfill both binary and text messages.
Creates an Immutant listener (map) for a WebSocket connection. Note that on-text and on-binary will override each other in this implementation, and you should use on-message if you need a single handler to fulfill both binary and text messages.
(start-ws-connection on-connect-fn)
(start-ws-connection on-connect-fn send-buffer-or-n)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close