WebSocket transport implementing the graphql-ws subprotocol
(https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md).
Uses java.net.http.WebSocket so there is no third-party WS dependency.
Auto-reconnects with exponential backoff up to 30 s. Fires :ws-open,
:ws-close, :ws-error events through the SDK's event registry.
This is an internal namespace — call rockbox.core/connect instead.
WebSocket transport implementing the `graphql-ws` subprotocol (https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md). Uses `java.net.http.WebSocket` so there is no third-party WS dependency. Auto-reconnects with exponential backoff up to 30 s. Fires `:ws-open`, `:ws-close`, `:ws-error` events through the SDK's event registry. This is an internal namespace — call `rockbox.core/connect` instead.
(close conn)Tear down the WebSocket connection. Idempotent.
Tear down the WebSocket connection. Idempotent.
(open client ws-url)Open a new WebSocket connection. Returns a connection value that you
pass to subscribe and close.
Open a new WebSocket connection. Returns a `connection` value that you pass to `subscribe` and `close`.
(subscribe conn query variables sink)Start a GraphQL subscription. sink is a map with :next, :error,
:complete keys. Returns a 0-arity unsubscribe fn.
Start a GraphQL subscription. `sink` is a map with `:next`, `:error`, `:complete` keys. Returns a 0-arity unsubscribe fn.
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 |