Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

#Pusher Client for Clojure

This library provides access to Pusher API from Clojure.

##Building

Make sure you have Leiningen installed.

lein deps && lein jar

##Installation

Library can be installed as a dependency from Clojars

##Example

(:use 'pusher)

(with-pusher-auth ["my-pusher-app-id" "my-pusher-key" "my-pusher-secret"]
  (with-pusher-channel "test_channel"
    (trigger "my_event" {:data "helloworld"}))))

or with credentials set permanently

(alter-var-root (var *pusher-app-id*)
  (constantly "my-pusher-app-id"))
(alter-var-root (var *pusher-key*)
  (constantly "my-pusher-key"))
(alter-var-root (var *pusher-secret*)
  (constantly "my-pusher-secret"))
(alter-var-root (var *pusher-channel*)
  (constantly "test_channel"))

(trigger "my_event" {:data "helloworld"})

##Copyright

Copyright (c) 2010 Bartosz Blimke. See LICENSE for details.

About

Pusher (http://www.pusherapp.com) Client for Clojure

Resources

License

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.