Ring 1.15 WebSocket upgrade handler for boundary-realtime.
Bridges Ring's map-based Listener (::ring.websocket/listener response) to the IRealtimeService connect/disconnect lifecycle.
Usage: (require '[boundary.realtime.shell.handlers.ring-websocket :as ws-handler])
;; In your route definitions {:path "/ws" :methods {:get {:handler (ws-handler/websocket-handler realtime-service)}}}
Ring 1.15 WebSocket upgrade handler for boundary-realtime.
Bridges Ring's map-based Listener (::ring.websocket/listener response)
to the IRealtimeService connect/disconnect lifecycle.
Usage:
(require '[boundary.realtime.shell.handlers.ring-websocket :as ws-handler])
;; In your route definitions
{:path "/ws"
:methods {:get {:handler (ws-handler/websocket-handler realtime-service)}}}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 |