-
Notifications
You must be signed in to change notification settings - Fork 61
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
Question: Using Query String #22
Comments
Hi, is there any kind soul with the knowledge to help on the above query? If the this feature exists kindly provide some guidance on how can it be done; or any workaround will also be fine. Thanks in advance. |
@oatcrunch I think you do it this way, by sending it in the options-object. const connection = signalr.hubConnection(fullUrlWithoutQueryString, {
qs : "username=rendang"
}); Let me know if it does not work! |
Hi @olofd . I have tested your suggested method. It works :) Thanks for your help. |
@oatcrunch Great! Then I'm closing this issue. |
Hi,
Just a simple query, how do I include query string using this library? The example in C# would be as follows:
var qs = "username=rendang";
var url = "http://192.168.93.139/SignalRHub/";
hubConnection = new HubConnection(url, qs);
Do we have the equivalent way of doing this? I tried using the traditional way using this library, but doesn't seem to work ie:
let qs = "username=rendang";
let url = "http://192.168.93.139/SignalRHub";
let fullUrl = url + "?" + qs;
const connection = signalr.hubConnection(fullUrl);
And this way as well:
let qs = "username=rendang";
let url = "http://192.168.93.139/SignalRHub";
Appreciate some advice.
Note: Sorry, I am very new to JS and ES6 language.
The text was updated successfully, but these errors were encountered: