Search code examples
angularsignalrasp.net-core-signalramazon-elb

Angular SignalR is not working with AWS Load Balancer Proxy URL


I am using signalR between my Angular with library @aspnet/signalr and .NET Core application. It is working fine on local machine and as well on IIS.

I want to use custom URL so I have applied Proxy through AWS Load Balancer so the API URL looks like https://api.example.com. It also works fine with Load Balancer URL.

With proxy URL, it gives an error failed: Error during WebSocket handshake: Unexpected response code: 400. Any suggestions to sort out this issue?


Solution

  • Here, the main issue was with Network Load Balancer. Later on, we created & tested this with separate Application Load Balancer and It worked fine.