I’m trying to connect to websockets using ws://localhost:5000/chat url in Postman. I’m using ASP.Net with SignalR. Connection starts and after a few seconds I get {“error”:”Handshake was canceled.”} message.
`info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/chat – – –
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint ‘/chat’
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint ‘/chat’
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://localhost:5000/chat – 101 – – 15016.3215ms`
How can I fix this?
I tried sending {“protocol”:”json”,”version”:1} message just after starting my connection but results were the same