cliquetpusher 0.2.0
proof-of-concept: Plug Cliquet notifications
with Pusher.com.
Install
pip install cliquet-pusher
Setup
In the Cliquet-based application settings:
cliquet.includes = cliquet_pusher
cliquet.event_listeners = cliquet_pusher.listener
cliquet.event_listeners.pusher.resources = <list of resource names>
cliquet.event_listeners.pusher.channel = <channel-name or pattern>
pusher.app_id = <pusher-app-id>
pusher.key = <pusher-key>
pusher.secret = <pusher-secret>
For example, in Kinto, to be notified of
record updates per collection:
kinto.event_listeners.pusher.resources = record
kinto.event_listeners.pusher.channel = {bucket_id}-{collection_id}-{resource_name}
> Note: This channel format is the one used in the demo
TODO
Add view for authenticated channels
Changelog
0.2.0 (2015-11-20)
Add HTML demo with Kinto and Leaflet
Works with Cliquet 2.11
0.1.0 (2015-11-05)
Initial working proof-of-concept.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.