0

I'm trying to use SignalR in ASP.NET Core 5; I've added SignalR service in service configuration and also created a hub class and its method with Angular, which is also configured as I saw on another website. Their code is similar but I am still getting below error:

Error: Failed to start the connection:
Error: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.

1 Answer 1

1

For four days I was facing issue in Signalr configuration but the error issue reason was port number.

Incidentally I changed my port number from application properties (Debug Properties) but forgot to change the application path in Angular SignalR configuration which was not showing any cores issue.

I changed Angular SignalR Configuration withUrl path to right path and the issue was resolved.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.