.net - 未从客户端调用的服务器函数
问题描述
我在通过 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
解决方案
推荐阅读
- javascript - 在 React 中未定义 useContext()
- amazon-dynamodb - DynamoDB Stream 同时显示 INSERT 和 UPDATE 以插入新记录
- python - Python:换屏的简单函数
- java - 使用 jmx 和 java 获取 kafka mbeans
- r - 在 R 中绘制网络时调整 igraph mark.groups 多边形的曲率
- python - 计算 LSTM 模型的雅可比矩阵 - Python
- javascript - 使用 piexifjs 在 jpeg Exif 上添加/修改 gps 坐标
- dart - 如何获取标识符类型 dart-analyzer
- python - Python 和 VBA 之间的通信
- python - 如何将熊猫数据框多索引列移动到 2 行