2.1.1 • Published 8 years ago

tweetping-connect v2.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

tweetping-connect

Connect to tweetping realtime channel

Usage

import createConnection from 'tweetping-connect';

//setup a connection to stream "n3rd"
const {connect, load, info, permalink} = createConnection('n3rd');

//load wall history
load('wall').then(posts => console.log(posts));

//info on a stream
info().then(stream => console.log(stream.name));

//receive new posts in realtime
const close = connect('wall', data => console.log(data)});

//return permalink for the post with the _id "1337"
console.log(permalink(1337));

//close connection 1 min later
setTimeout(close, 60 * 1000);
2.1.1

8 years ago

2.1.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0-beta

8 years ago

1.2.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago