SignalR 点对点(js 到 js)通信

SignalR peer to peer (js to js) communcation

我想支持两个或多个 JS 客户端之间的 LANClient 到 LANClient 连接。我打算使用一个永久的外部 C# 服务器来建立本地连接(确定两个客户端是否在同一局域网上并交换它们的本地网络地址)。

SignalR 对此有任何支持吗?是否可以在 JS 上托管中心服务器?是否支持直接客户端到客户端通信?

谢谢!

否,取自http://signalr.net/

What is ASP.NET SignalR

ASP.NET SignalR is a new library for ASP.NET developers that makes it incredibly simple to add real-time web functionality to your applications. What is "real-time web" functionality? It's the ability to have your server-side code push content to the connected clients as it happens, in real-time.

You may have heard of WebSockets, a new HTML5 API that enables bi-directional communication between the browser and server. SignalR will use WebSockets under the covers when it's available, and gracefully fallback to other techniques and technologies when it isn't, while your application code stays the same.

SignalR also provides a very simple, high-level API for doing server to client RPC (call JavaScript functions in your clients' browsers from server-side .NET code) in your ASP.NET application, as well as adding useful hooks for connection management, e.g. connect/disconnect events, grouping connections, authorization.

因此,要使用 SignalR 与客户端通信,您应该使用 SignalR HUB。