Skip to content

A dependency-free pub/sub JavaScript library to work with Larapush

License

Notifications You must be signed in to change notification settings

redbaron76/Larapush.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Larapush.js - a Pub/Sub Js Library

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.

Example implementation
(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.

About

A dependency-free pub/sub JavaScript library to work with Larapush

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published