(close-connection!)
Closes the WebSocket connection and returns a channel with the status at close.
Closes the WebSocket connection and returns a channel with the status at close.
(create-ws-subscription-step)
(create-ws-subscription-step
uri
&
{:keys [interchange-format init-payload reconnect?]
:or {interchange-format :json init-payload {} reconnect? true}})
Returns a new WSSubscriptionStep
for a given uri and options. The uri
defaults to "/graphql/subscriptions"
. Uses haslett channels for WebSocket
connection and exchange.
Returns a new `WSSubscriptionStep` for a given uri and options. The uri defaults to `"/graphql/subscriptions"`. Uses haslett channels for WebSocket connection and exchange.
(unsubscribe! ws-id)
Given a ws-id
, find the subscription and close the channel, remove from
the live-subs registry, and send a stop message to the server.
Given a `ws-id`, find the subscription and close the channel, remove from the live-subs registry, and send a stop message to the server.
(with-ws-subscriptions http-step ws-sub-step)
Returns a network chain that directs subcription operations to the ws-sub-step and all others to the http-step.
Returns a network chain that directs subcription operations to the ws-sub-step and all others to the http-step.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close