(authenticate p socket-id channel)
(channel p channel)
(connected? p)
(connection-state p)
(disconnect p)
(on-channel-event ch event on-value-fn)
(on-channel-event ch
event
on-value-fn
{:keys [parse-fn] :or {parse-fn identity}})
(on-connected p handler-fn)
(on-connecting-in p handler-fn)
(on-disconnected p handler-fn)
(on-error p handler-fn)
(on-message p handler-fn)
(on-pusher-event p event handler-fn)
(on-state-change p handler-fn)
(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.
(pusher creds)
(pusher creds encrypted?)
Creates a Pusher object.
Creates a Pusher object.
(pusher app-key)
(pusher app-key opts)
(result->map result)
(socket-id p)
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close