Deepak Kumar

Results 240 comments of Deepak Kumar

Will you be able to fork https://github.com/stomp-js/ng2-stompjs-angular7 and update it to write one simple test. If you prefer you can use the angular10 branch.

The answer is a bit long, I will add more details in a couple of days.

A bit of history: - First usable release was made in 2017. - The first decision point arose with the release of Angular 6, the same code could not have...

In the meanwhile please check https://github.com/stomp-js/ng2-stompjs/tree/develop/src/app. Other than https://github.com/stomp-js/ng2-stompjs/blob/develop/src/app/rx-stomp-service-factory.ts (which is 7-8 lines), all has 2 lines of code each.

Yes, your understanding is correct; all the work is done by the underlying library [rx-stomp]. [rx-stomp], while a wrapper over [stompjs], adds important functionality. As the first step, I will...

I have written a guide https://stomp-js.github.io/guide/rx-stomp/ng2-stompjs/ng2-stompjs-to-rx-stomp.html, please check and see if it works for you.

Please check https://github.com/stomp-js/ng2-stompjs#delayed-initialization - using `StompRService` might solve your issue.

If you are using newer API (v7), you can use the guidelines from https://github.com/stomp-js/ng2-stompjs/issues/109#issuecomment-442916580 Below you can see example code from @Oddisey at https://github.com/stomp-js/ng2-stompjs/issues/109#issuecomment-442986556 You can ignore the proxy part...

There is no way to add headers to the underlying HTTP request for the WebSocket. The WebSocket standards has no mechanism for that. The code above will add the header...

Please try the suggestion from https://stackoverflow.com/a/56239226/2565234 and see if it works, if it does, please submit a PR.