Liking cljdoc? Tell your friends :D
Clojure only.

rockbox.ws

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.
raw docstring

closeclj

(close conn)

Tear down the WebSocket connection. Idempotent.

Tear down the WebSocket connection. Idempotent.
sourceraw docstring

openclj

(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`.
sourceraw docstring

subscribeclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close