SignalR - How do I disable WebSockets

后端 未结 3 1116
日久生厌
日久生厌 2020-12-01 16:23

I upgraded to .NET 4.5, now SignalR seems insistent on using WebSockets in Firefox/Chrome - even though I\'m only on Windows 7 which doesn\'t have a WebSocket Server.

<
3条回答
  •  悲哀的现实
    2020-12-01 16:58

    I found the answer here:

    https://github.com/SignalR/SignalR/wiki/SignalR-JS-Client

    Basically:

    $.connection.hubs.start({ transport: 'longPolling' }, function() {
        console.log('connection started!');
    });
    

提交回复
热议问题