sjmf / ng2-stompjs-demo Goto Github PK
View Code? Open in Web Editor NEWAngular 2 demo using stomp.js in Typescript
License: MIT License
Angular 2 demo using stomp.js in Typescript
License: MIT License
I run the example, connecting succesfully, sending the message (can see it in RMQ web ui but I dont get the message back. No errors in console
Hello,
I am trying to implement this library, and when I try to create the client object, nothing happens.
this.client = Stomp.client( scheme + '://' + this.config.host + ':' + this.config.port + '/stomp/websocket' );
I see that 'Stomp' is declared on line 10, but it does not get assigned a value that I can see. I'm sure I'm missing something silly.
Thanks
This issue tracks updating this project to work with the Angular 2.0 release version.
The plan is to configure the build using angular-cli, as opposed to the current method using SystemJS.
Time estimate: 4-5 h
For an example of where I've already done this see my MQTT demo
I'm not sure if this is the best place to post this, but I'm trying to integrate this into our application and keep getting this error in the angular cli.
It happens on what is line 81 in the stomp.service.ts file (it's on a different line in mine):
// Attempt connection, passing in a callback this.client = Stomp.client('${scheme}://${environment.messageQueueRootUrl}:${environment.messageQueuePort}/ws/v11.stomp');
I had this in another app developed with Angular2 RC4, and it worked perfectly. Now that I'm trying to integrate it into our new platform based on the final release of Angular2, I'm getting this error.
Any help would be appreciated.
Chris Hampton
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.