Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect to the server not as anonymous #34

Open
jbdioli opened this issue Feb 14, 2021 · 1 comment
Open

How to connect to the server not as anonymous #34

jbdioli opened this issue Feb 14, 2021 · 1 comment

Comments

@jbdioli
Copy link

jbdioli commented Feb 14, 2021

Hello

I getting the connection to the server as anonymous. It works well.
How now can I be connected to the server with a username, a pseudo, and not as anonymous ?

I'm trying to find documentation without success. :(

Thanks you very much for your help :)

@kum-deepak
Copy link
Member

This example uses user/password guest/guest, which is the default in a new RabbitMQ installation (https://github.com/stomp-js/ng2-stompjs-angular7/blob/master/src/app/my-rx-stomp.config.ts#L10). Please set it as per your needs.

You may also need to set the host header if your broker needs it. Brokers may support other means of authentication as well (like tokens).

You may find the guide at https://stomp-js.github.io/guide/ng2-stompjs/ng2-stomp-with-angular7.html useful. This sample is the final output of the tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants