首页 > 解决方案 > 未从客户端调用的服务器函数

问题描述

我在通过 Azure (ASP .NET) 使用 SignalR 时遇到问题。我已经设置了我的服务器集线器,生成的 js 客户端集线器从服务器集线器获取所有服务器功能,但是当我在客户端调用服务器功能时,它们不会在服务器上调用。

在 websocket 上 Chrome 的消息选项卡上,我可以在打开的连接上将消息发送到 azure,但在从 azure 到服务器的途中某个地方它们消失了。

其他人有同样的问题,并有线索可能是什么问题?

日志:

Microsoft.Azure.SignalR Information: 0 : [Microsoft.Azure.SignalR.Connections.Client.Internal.WebSocketsTransport]Starting transport. Transfer mode: Binary. Url: 'wss://xxxx.service.signalr.net/aspnetserver/?hub=testing.startup_testing.startup&cid=xxxxc'.
    Microsoft.Azure.SignalR Information: 0 : [Microsoft.Azure.SignalR.Connections.Client.Internal.WebSocketsTransport]Starting transport. Transfer mode: Binary. Url: 'wss://xxxx.service.signalr.net/aspnetserver/?hub=testing.startup_negguhub&cid=xxxx'.
    Microsoft.Azure.SignalR Information: 0 : [Microsoft.Azure.SignalR.Connections.Client.Internal.WebSocketsTransport]Starting transport. Transfer mode: Binary. Url: 'wss://xxxx.service.signalr.net/aspnetserver/?hub=testing.startup_xxxx&cid=xxxx'.
    Microsoft.Azure.SignalR Information: 0 : [Microsoft.Azure.SignalR.StrongServiceConnectionContainer]Hub 'NegguHub' is now connected to '(Primary)https://xxxx.service.signalr.net'.
    Microsoft.Azure.SignalR Information: 0 : [Microsoft.Azure.SignalR.StrongServiceConnectionContainer]Hub 'xxxx' is now connected to '(Primary)https://xxxx.service.signalr.net'.
    Microsoft.Azure.SignalR Information: 0 : [Microsoft.Azure.SignalR.StrongServiceConnectionContainer]Hub 'Testing.Startup' is now connected to '(Primary)https://xxxx.service.signalr.net'.
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c
    Microsoft.Azure.SignalR Error: 0 : [Microsoft.Azure.SignalR.AspNet.ServiceConnection]Error when processing messages. Id: dea3a65d-3785-4a49-9821-73eb6552306c

标签: .netazurewebsocketsignalr

解决方案


推荐阅读