Angular service to Stomp Web-Socket
1 person uses it
Author: 1970922?v=3 davinkevin


Angular service to Web-Stomp


This class relies on stomp.js that can be found at:

Add the dependency to your Angular application :

Configure the ngStomp to connect to your web-socket system :

Use it inside your controller (or everywhere you want !)

You can chain multiple subscribe

Don't forget to unsubscribe your callback when the $scope is detroy (or the call will append even after the scope has been detroyed)

Or you can give the $scope to the subscribe method to enable the auto-unsubscribe

comments powered by Disqus
This page was last updated over 3 years ago.