Liking cljdoc? Tell your friends :D

clj-bitstamp.async


connectclj

(connect pusher)
source

default-pusher-keyclj

source

disconnectclj

(disconnect pusher)
source

new-pusherclj

(new-pusher {:keys [channel-name pusher-key event-name status-buffer-or-n
                    data-buffer-or-n]
             :as opts})

Opens a new connection with the Pusher server, subscribes a requested channel and returns a following tuple [pusher pusher-channel status-ch data-ch]

  • pusher a Pusher instance
  • pusher a subscribed Channel instance
  • status-ch an async channel containing a pusher and channel messages as a tuple [action data]
  • data-ch an async channel containing data for the subscribed channel as a tuple [channel-name event-name data]

The function takes an option object:

  • channel-name a channel name to subscribe
  • pusher-key a Pusher key, default de504dc5763aeef9ff52
  • event-name an event name to bind on the subscribed channel
  • status-buffer-or-n a buffer-or-n for the status channel
  • data-buffer-or-n a buffer-or-n for the data channel
  • str-big-decimals? when true coerce a volume and price (in strings) as BigDecimal, default true
Opens a new connection with the Pusher server, subscribes a requested channel and returns a following tuple
 [pusher pusher-channel status-ch data-ch]
 - `pusher` a Pusher instance
 - `pusher` a subscribed Channel instance
 - `status-ch` an async channel containing a pusher and channel messages as a tuple `[action data]`
 - `data-ch` an async channel containing data for the subscribed channel as a tuple `[channel-name event-name data]`

The function takes an option object:
 - `channel-name` a channel name to subscribe
 - `pusher-key` a Pusher key, default de504dc5763aeef9ff52
 - `event-name` an event name to bind on the subscribed channel
 - `status-buffer-or-n` a buffer-or-n for the status channel
 - `data-buffer-or-n` a buffer-or-n for the data channel
 - `str-big-decimals?` when `true` coerce a volume and price (in strings) as `BigDecimal`, default `true`
sourceraw docstring

pusher-factoryclj

(pusher-factory pusher
                {:keys [channel-name pusher-key event-name status-buffer-or-n
                        data-buffer-or-n str-big-decimals?]
                 :as opts
                 :or {str-big-decimals? true}})
source

state->keywordclj

(state->keyword state)
source

subscription-listenerclj

(subscription-listener callback str-big-decimals?)
source

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

× close