以下是来自signalr的日志:
[16:09:28 GMT-0500 (Eastern Standard Time)] SignalR: Client subscribed to hub 'chat'signalr/negotiate?:09:28 GMT-0500 (Eastern Standard Time)] SignalR: Attempting to connect to SSE endpoint 'http://mysubdomai
每次客户端尝试建立连接时,都会出现超时,并且失败到SSE (或在IE中永远使用框架/长轮询)。我把超时时间增加到了25秒,同样的症状也在发生。SignalR: Websocket opened.SignalR: **webSockets timed out when trying to connect.**
SignalR: Closing the Websocket.SignalR: Attempting to connect to SSE endpoint
我使用的是SignalR 2.2.0和MVC 4。当我用Chrome加载页面时,我在控制台中收到一个错误: at Microsoft.AspNet.SignalR.PersistentConnection.ProcessRequest(HostContextcontext)
at Microsoft.AspNet.SignalR.Hubs.HubDi
当我向Azure发布时,我在协商握手时会遇到一个CORS错误。如果我关掉谈判,CORS的错误就会消失。为什么谈判不使用我的CORS政策?谈判的利弊是什么?AllowCredentials().SetIsOriginAllowed(o => true).WithMethods("GET", "POST");我的客户建设者:
var connection = new signalR.HubConnectionBuilderskipNegotiation: true, //if I ch