stephen-moyer / ngx-signalr-hubservice

Makes using SignalR in Angular 2/4 easy
MIT License
24 stars 5 forks source link

I wanted to add headers to the hub connection. Couldn't found a way out? #26

Open MusabBasheer opened 4 years ago

MusabBasheer commented 4 years ago

this.connected = await this.hubService.connect({ url:"url", attemptReconnects: true, qs: token, hubGroups: "chatGroup" }).toPromise();

StevenGlrz commented 4 years ago

I looked over the SignalR JS library code and it doesn't seem like there's a 'headers' option available. It looks like they have code that adds a bearer token to the header, but I couldn't find anything for adding your own headers. Let me know if you find anything.