This project was generated with Angular CLI version 1.0.0 and Angular4 (version 4.0.0) to act as a sample for @stomp/ng2-stompjs.
Install dependencies:
$ npm install
or, if using yarn
$ yarn
Configure details for your Stomp Broker by editing
src/app/services/config/config.service.ts
The configuration should work as is for a RabbitMQ instance running on localhost with default settings and Web STOMP plugin activated. (see: https://www.rabbitmq.com/web-stomp.html).
Run ng serve
for a dev server. Navigate to http://localhost:4200/
.
The app will automatically reload if you change any of the source files.
Check the following files:
- src/app/app.module.ts - Configuration and service provisions for StompService using Dependency Injection.
- src/app/components/rawdata/rawdata.component.ts - subscribing / unsubscribing a queue and publishing messages.
- src/app/components/status/status.component.ts - monitoring status of Stomp connection.
MIT