jamiewest / signalr_core

ASP.NET Core SignalR Dart Client
https://pub.dev/packages/signalr_core
MIT License
91 stars 58 forks source link

Does not work with load balancer and sticky sessions setup #40

Closed juanrequeijo closed 3 years ago

juanrequeijo commented 3 years ago

When I configure my backend to work like:

https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html

signalr_core crash:

image

jamiewest commented 3 years ago

Would you be able to test connecting to your backend via the javascript client and post back the results?

juanrequeijo commented 3 years ago

Yes, in javascript it works as expected.

image

In javascript:

In the post negotiate request, the request sends a bearer token in authorization and sets an aws cookie. image

juanrequeijo commented 3 years ago

You should add header cookie in custom http client image