We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, in the web application I use signalR for angular (https://www.npmjs.com/package/@aspnet/signalr)
When i connected, I send token, example from web app. (accessTokenFactory)
this.notifyHubConnection = new signalR.HubConnectionBuilder() .withUrl(`${ this.apiUrl }hub/messages`, { accessTokenFactory: () => token }) .build(); this.notifyHubConnection.start().catch((err) => this.hubReconnect()); this.notifyHubConnection.on('OnMessageReceived', (sender, senderID, content) => {...});
This is what my code looks like in a web application, can anyone help me open it in this library?
The text was updated successfully, but these errors were encountered:
I have the same problem.
Sorry, something went wrong.
Propably I found the solution:
const connection = signalr.hubConnection('url', { headers: { 'Authorization': Bearer ${valueObj.token}, 'Content-Type': 'text/plain;charset=UTF-8' } }
const connection = signalr.hubConnection('url', { headers: { 'Authorization':
, 'Content-Type': 'text/plain;charset=UTF-8' } }
I used lib from microsoft and this run :P https://docs.microsoft.com/pl-pl/aspnet/core/signalr/javascript-client?view=aspnetcore-2.2
No branches or pull requests
Hi, in the web application I use signalR for angular
(https://www.npmjs.com/package/@aspnet/signalr)
When i connected, I send token, example from web app. (accessTokenFactory)
This is what my code looks like in a web application, can anyone help me open it in this library?
The text was updated successfully, but these errors were encountered: