ng2-stomp
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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()

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i ng2-stomp

      Weekly Downloads

      24

      Version

      1.0.6

      License

      none

      Last publish

      Collaborators

      • preetham1290