The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
jQuery Comet Push API
jQuery Comet Push API provides Comet based Publish & Subscribe Real Time Messaging. This API runs on PubNub, a Comet based Service.
Visit the JavaScript Push API Documentation at PubNub.
DOWNLOAD: JavaScript Push API at PubNub
jQuery Comet Subscribe
// Listen for Published Messages
// $.PUBNUB.subscribe( args, callback )
$.PUBNUB.subscribe({
channel : 'my_channel'
}, function(message) {
// Show Message
console.log(message);
} );jQuery Comet Publish
// Send Messages to Subscribers
// $.PUBNUB.publish( args, callback )
$.PUBNUB.publish( {
channel : 'my_channel',
message : { 'my_var' : 'some text data' }
});jQuery Comet UnSubscribe
// Stop Listening for Published Messages
// $.PUBNUB.unsubscribe(args)
$.PUBNUB.unsubscribe({ channel : 'my_channel' });jQuery Comet History
// Show Previously Published Messages
// $.PUBNUB.history( args, callback )
$.PUBNUB.history( {
channel : 'my_channel',
limit : 10
}, function(messages) {
// Shows All Messages
console.log(messages);
} );Downloads
Development
(2 votes)
