Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.
/ ng4-stompjs-demo Public archive

A sample using Angular4, Angular CLI and @stom/ng2-stompjs

License

Notifications You must be signed in to change notification settings

stomp-js/ng4-stompjs-demo

Repository files navigation

Ng4StompDemo

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.

Setup

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

Development server

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.

Where Next

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.

Contributors

License

MIT

About

A sample using Angular4, Angular CLI and @stom/ng2-stompjs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published