Liking cljdoc? Tell your friends :D

pusher.core


authenticateclj

(authenticate p socket-id channel)

channelcljs

(channel p channel)

connected?cljs

(connected? p)

connection-statecljs

(connection-state p)

disconnectcljs

(disconnect p)

on-channel-eventcljs

(on-channel-event ch event on-value-fn)
(on-channel-event ch
                  event
                  on-value-fn
                  {:keys [parse-fn] :or {parse-fn identity}})

on-connectedcljs

(on-connected p handler-fn)

on-connecting-incljs

(on-connecting-in p handler-fn)

on-disconnectedcljs

(on-disconnected p handler-fn)

on-errorcljs

(on-error p handler-fn)

on-messagecljs

(on-message p handler-fn)

on-pusher-eventcljs

(on-pusher-event p event handler-fn)

on-state-changecljs

(on-state-change p handler-fn)

push!clj

(push! p channel-or-channels event msg)
(push! p channel-or-channels event msg socket-id)

Sends an event to one or more channels. You can trigger an event to at most 10 channels at once. Passing more than 10 channels will cause an exception to be thrown.

In order to avoid the client that triggered the event from also receiving it, the trigger function takes an optional socketId parameter. For more information see: http://pusher.com/docs/publisher_api_guide/publisher_excluding_recipients.

Sends an event to one or more channels. You can trigger an event to at most 10 channels at once.
Passing more than 10 channels will cause an exception to be thrown.

In order to avoid the client that triggered the event from also receiving it, the trigger function takes an
optional socketId parameter. For more information see:
http://pusher.com/docs/publisher_api_guide/publisher_excluding_recipients.
raw docstring

pusherclj/s≠

clj
(pusher creds)
(pusher creds encrypted?)

Creates a Pusher object.

Creates a Pusher object.
cljs
(pusher app-key)
(pusher app-key opts)
raw docstring

result->mapclj

(result->map result)

socket-idcljs

(socket-id p)

subscribecljs

(subscribe ch event)
(subscribe ch event opts)

Subscribes to a pusher event stream and returns a stream of events. Closing the bus will have no effect.

Subscribes to a pusher event stream and returns a stream of events. Closing
the bus will have no effect.
raw docstring

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

× close