Javascript client for Poussr
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/jasmine-1.0.1
spec
src
README.markdown
SpecRunner.html

README.markdown

Poussr-js

Poussr-js is a small Javascript library, that allows for easy interaction with Poussr.

Setup

Each instantiated Poussr object allows for connection to a Poussr channel (after calling the 'connect' method).

Client can then choose to subscribe to some event through the 'subscribe' method.

var mypoussrobj = new Poussr(host, port, channel);
mypoussr.connect();
mypoussrobj.subscribe('event:tofollow', function(data) { /* the callback */ });