Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
/ clj-pubnub Public archive

PubNub client for Clojure

Notifications You must be signed in to change notification settings

doo/clj-pubnub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

clj-pubnub

Clojure client for PubNub.

This repository is not maintained anymore

Usage

Publishing

;; The client should always be required with an alias
(require '[clj-pubnub.client :as pubnub])

;; Configuration can be passed directly
(pubnub/publish {:pub-key "demo" :sub-key "demo"} "my_channel" {:hello "world"})

;; ... or through a binding
(binding [pubnub/config {:pub-key "demo" :sub-key "demo"}]
  (pubnub/publish "my_channel" {:hello "world"}))

;; ... or by setting it globally
(pubnub/set-config! {:pub-key "demo" :sub-key "demo"})
(pubnub/publish "my_channel" {:hello "world"})

;; SSL and signing is also supported
(pubnub/publish {:pub-key "demo"
                 :sub-key "demo"
                 :secret-key "demo"
                 :ssl true}
                "my_channel"
                {:hello "world"})

License

Copyright (C) 2012 Moritz Heidkamp, doo GmbH

Distributed under the Eclipse Public License, the same as Clojure.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •