A dependency-free Pub/Sub JavaScript library to work with Larapush
This library is still UNDER DEVELOPMENT but feel free to download and try it as you wish.
(function() {
var larapush = new Larapush('ws://192.168.10.10:8080');
larapush.watch('demoChannel').on('generic.event', function(msgEvent)
{
console.log('generic.event has been fired!', msgEvent.message);
});
larapush.watch('profileChannel').on('generic.event', function(msgEvent)
{
console.log('profile.visit has been fired!', msgEvent.message);
});
larapush.watch('profileChannel').on('profile.visit', function(msgEvent)
{
console.log('profile.visit has been fired!', msgEvent.message);
});
})();
Follow my Twitter account @FFumis for any update.