question

DeathHead-0789 avatar image
0 Votes"
DeathHead-0789 asked YijingSun-MSFT edited

signalR websockets transport failed to connect

Hi, I am trying to figure out why websockets is not connecting using signalR on my webserver.

The setup is Windows Server 2019 with IIS 10.

There is another site on the same webserver using signalR that does not have the same issue. What I am looking for is like a punch list of configurations to look at as to why the two sites are working differently. Any insight would be appreciated.

Here is what I am getting when logging is turned on for signalR.

[14:58:07 GMT+0000 (Coordinated Universal Time)] SignalR: webSockets transport starting.
jquery.signalR-2.4.3.min.js:9 [14:58:07 GMT+0000 (Coordinated Universal Time)] SignalR: Connecting to websocket endpoint 'wss://server/website/signalr/connect?transport=webSockets&clientProtocol=2.1&connectionToken=xl%2FXdj3qzjtBUFE87dS2PHU0210aznNUcB90UBxV2eOZSoZG1KCtPNPYVIeMz4nd49BfdOsxzqBT7enZWRJGbwiXHMhef%2BUL7JCADGHyroZNEtpscGZhqSgVqyhLWXKw&connectionData=%5B%7B%22name%22%3A%22messagehub%22%7D%5D&tid=3'.
jquery.signalR-2.4.3.min.js:9 [14:58:07 GMT+0000 (Coordinated Universal Time)] SignalR: Websocket opened.
jquery.signalR-2.4.3.min.js:9 [14:58:12 GMT+0000 (Coordinated Universal Time)] SignalR: webSockets transport timed out when trying to connect.
jquery.signalR-2.4.3.min.js:9 [14:58:12 GMT+0000 (Coordinated Universal Time)] SignalR: Closing the Websocket.
jquery.signalR-2.4.3.min.js:9 [14:58:12 GMT+0000 (Coordinated Universal Time)] SignalR: webSockets transport failed to connect. Attempting to fall back.
jquery.signalR-2.4.3.min.js:9 [14:58:12 GMT+0000 (Coordinated Universal Time)] SignalR: longPolling transport starting.

windows-server
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers