ngStomp
Installation
Install via Bower:
bower install --save ng-stomp
Add standalone version (dependencies included) to your HTML file
Or add SockJS + STOMP + (minified) ngStomp individually:
Install via npm:
npm install --save ng-stomp
Add standalone version (dependencies included) to your HTML file
Or add SockJS + STOMP + (minified) Stompie individually:
Usage
Inject it in your controller:
angular // Declare ngStomp as a dependency for you module // use $stomp in your controllers, services, directives,...
API-Docs (TBD)
- setDebug(callback)
- connect(endpoint, headers)
- disconnect
- subscribe(destination, callback, headers)
- on(destination, callback, headers)
- unsubscribe(subscription)
- off(subscription)
- send(destination, body, headers)