AngularStompDK

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

AngularStomp

Angular service to Web-Stomp

Usage

This class relies on stomp.js that can be found at: https://github.com/jmesnil/stomp-websocket/

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 2 years ago.