Ring 1.15 WebSocket upgrade handler for wagoe-realtime.
Bridges Ring's map-based Listener (::ring.websocket/listener response) to the IRealtimeService connect/disconnect lifecycle.
Usage: (require '[wagoe.realtime.shell.handlers.ring-websocket :as ws-handler])
;; In your route definitions ["/ws" {:get {:handler (ws-handler/websocket-handler realtime-service)}}]
Ring 1.15 WebSocket upgrade handler for wagoe-realtime.
Bridges Ring's map-based Listener (::ring.websocket/listener response)
to the IRealtimeService connect/disconnect lifecycle.
Usage:
(require '[wagoe.realtime.shell.handlers.ring-websocket :as ws-handler])
;; In your route definitions
["/ws" {:get {:handler (ws-handler/websocket-handler realtime-service)}}]Server-sent events for htmx: sse-handler streams, push-fragment! pushes.
See the realtime guide for the route, page and push example.
Server-sent events for htmx: `sse-handler` streams, `push-fragment!` pushes. See the realtime guide for the route, page and push example.
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 |