Liking cljdoc? Tell your friends :D

artemis.network-steps.ws-subscription


close-connection!cljs

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

create-ws-subscription-stepcljs

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

live-subscljs

source

log-dupe!cljs

(log-dupe! msg)
source

subs-buffercljs

source

unsubscribe!cljs

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

with-ws-subscriptionscljs

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

ws-conncljs

source

WSSubscriptionStepcljs

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close