-
Notifications
You must be signed in to change notification settings - Fork 13
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
There is no way to change Client authid #33
Comments
You can use a subject or observable to configure the client, which will allow you to change the config on the fly. const config = new BehaviorSubject({
url: "ws://127.0.0.1:9090",
realm: "realm1"
});
const wamp = new Client(config);
// Once you get the authid
config.next({
url: "ws://127.0.0.1:9090",
realm: "realm1",
options: {
authid: 'dave'
}
}); |
In this way app is not connecting to ws. But there is also no error thrown. My config looks like this:
authid exists, so there is no problem with that. |
Returning to this one. Stack Trace:
WampService.ts:29 line is: |
What version of rxjs are you using and do you have the |
Latest stable. :) |
In my app I need first to start
anonymous
connection. After that i get access token, which one i use asauthid
. So far i haven't seen a way to change authid for a client.Currently i am recreating client with new authid. Is there better way?
The text was updated successfully, but these errors were encountered: