[英]Microsoft Signalr architecture and how it's working
I'm trying to understand how Signalr works.我试图了解 Signalr 的工作原理。 I have read a lot of documentation but I still don't get it completely.
我已经阅读了很多文档,但我仍然没有完全理解。
I want to start by explaining my case.我想先解释一下我的情况。 I have a react front application that communicate with a Nodejs Azure function.
我有一个与 Nodejs Azure function 通信的反应前端应用程序。 I want to add realtime to it by using Signalr.
我想通过使用 Signalr 为其添加实时。
In documentation I see that all tutorials are using ASP.NET to create Hubs on server side.在文档中,我看到所有教程都使用 ASP.NET 在服务器端创建集线器。
As I don't have any experiences in ASP.NET or C# I would like to know if there is a solution to use Signalr witout C# but NodeJS ( Javascript ) on server side? As I don't have any experiences in ASP.NET or C# I would like to know if there is a solution to use Signalr witout C# but NodeJS ( Javascript ) on server side?
I would also know what is the difference between ASP.NET Core SignalR and ASP.NET SignalR?我也想知道 ASP.NET Core SignalR 和 ASP.NET Z358E3E185C26A6A339BZE30FDZ 有什么区别? ( this post is not clear enough for me)
( 这篇文章对我来说不够清楚)
SignalR is part of the .NET framework. SignalR 是 .NET 框架的一部分。 It should be used server side on ASP.NET or ASP.NET Core.
它应该在 ASP.NET 或 ASP.NET 内核上使用服务器端。
The difference between the two frameworks is that .NET is kinda the legacy Framework.这两个框架之间的区别在于 .NET 有点像旧版框架。 .NET Core is a full rewrite that on the surface looks a like but is cross-platform, lighter and has best performances.
.NET Core 是一个完全重写的内核,表面上看起来很像,但它是跨平台的,更轻巧,性能最好。
The goal of SignalR is to offer developers an easy library to use real time communication. SignalR 的目标是为开发人员提供一个使用实时通信的简单库。 Depending on the server or client capacities, it will open a channel with the best protocol possible between them to realize real time operations.
根据服务器或客户端的能力,它将在它们之间打开一条具有最佳协议的通道,以实现实时操作。
NOW, what you need is a technology like SignalR (but not it) for NodeJS: https://socket.io/现在,您需要的是像 SignalR(但不是它)这样的技术,用于NodeJS:https://socket.io/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.