ng2-stomp
v1.0.6
Published
wrapper for stomp client in angular 2
Downloads
52
Maintainers
Readme
ng2-stomp
Steps to use:
1. npm install sockjs-client --save
npm install stompjs --save
npm install ng2-stomp --save
step 1 will list all the peer dependencies need(will be fixed in later version)
2. npm install "above-listed-dependencies" to your angular project
3. include "node_modules/sockjs-client/dist/sockjs.min.js"
and "node_modules/stompjs/lib/stomp.min.js" to index.html
or to angualar-cli.json file if you are using angular-cli
In app.module.ts
4. import {Ng2StompModule} from 'ng2-stomp';
include to your module's imports Ng2StompModule.forRoot()