问题标签 [signalr.client]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
.net - .NET SignalR 客户端无法订阅服务器事件
我正在尝试在 .NET 客户端中使用 SignalR。我能够成功连接,但是当我尝试订阅事件时没有任何反应。我无法接收从服务器发送的消息。我对这个领域很陌生,所以我不确定我的代码是否遗漏了什么或有什么问题。
.net - SignalR 有效负载是否不可知?
SignalR 是否支持除包含 JSON 或文本(如 BSON 等)之外的有效负载吗?
signalr - 将对象发送到 .net signalr 客户端时出错
我的理解是,使用信号器,我可以来回发送对象。我正在尝试设置一个 .net 客户端来接收已在网站上放置订单的通知。我正在尝试设置一个非常简单的示例,以便我理解这些概念。当我将字符串通知发送回客户端时效果很好,但是当我尝试发送对象时出现错误:
我的课:
我的枢纽:
我的控制器动作:
SendNotifier - 这有点奇怪,因为我让它同时发送一个字符串版本和一个对象版本进行测试:
还有我的控制台应用程序:
如果我将 DisplayOrder 参数更改为字符串,它就可以工作。我知道我可能可以使用 Json.Net 手动反序列化它,但我的理解是我应该能够将它作为一个对象使用并让信号器反序列化。我错过了什么?
asp.net-mvc - SignalR 和客户端证书
我计划使用 SignalR 通知客户。
在生产中,我们被迫使用客户端 x509 证书来使用反向代理对客户端进行身份验证。它还将在连接到我们的 IIS 网络服务器之前终止 SSL。
这行得通吗?
我找不到任何 api 来添加客户端证书或使用 WebRequestHandler。
我不可能是第一个。
/HAXEN
signalr.client - 如何捕获 SignalR 本机客户端失去与服务器的连接
我正在开发一个使用 SignalR 的 .net 客户端应用程序。如果由于某种原因连接断开,我想通知用户。如何使用本机客户端捕获断开连接事件?
windows-8 - WinJS 示例与 MS ASP.NET SignalR 一起使用?
我在 VS2012 中创建了SignalR 快速入门。它在 localhost:xxxx 上运行良好。我毫无问题地添加了一个 Winforms 项目作为 SignalR 客户端。
然后,我添加了一个 Win8 WinJS 应用程序,但无法通过 SignalR 接收消息。基本上我在网上得到了 undefind
任何人都可以发送成功的示例解决方案吗?
signalr - 遍历 SignalR 客户端
我对 SignalR 很陌生。我试图寻找解决方案但没有成功。有没有办法遍历 SignalR 中的客户端?也就是说,我需要检查每个客户端的状态,并根据它来决定做什么。
谢谢
jquery - SignalR 显示用户正在输入
SignalR 是否有任何功能来处理 user1 正在向 user2 输入 user1 当前正在输入的警报?我看到的例子都在 ajax 或 jquery 中。这是用于使用 SignalR 的用户之间的聊天
signalr - SignalR 客户端获取 System.Net.WebException
所以我刚开始玩 SignalR,但无法通过最基本的设置来让它工作。
我可以在下面的控制器中放置断点并查看客户端连接,但是客户端只是立即收到一个 WebException ,而没有任何关于问题所在的有用消息。这个简单的用法看起来有什么问题吗?
这是客户端:
还有一个例外: