Home  >  Article  >  Web Front-end  >  What is real-time communication on the Web?

What is real-time communication on the Web?

零下一度
零下一度Original
2017-06-24 11:33:031748browse
ASP .NET SignalR is a class library under ASP .NET that can achieve real-time communication in ASP .NET Web projects.
What is the Web for real-time communication? It is to allow the client (Web page) and the server to notify each other of messages and call methods. Of course, this is a real-time operation.
WebSockets is a new API provided by HTML5, which can establish a Socket connection between a Web page and the server. When WebSockets is available (that is, the browser supports Html5)
SignalR uses WebSockets. When not supported, SignalR will use other technologies to ensure the same effect.
SignalR also provides a very simple and easy-to-use high-level API, allowing the server to call JavaScript functions on the client individually or in batches,
And it is very convenient to perform connection management, such as client connection to server, or disconnection, client grouping, and client authorization, which are very easy to implement using SignalR.
Step one: Join the group
Step 2: Close the window
##Step 3: Trigger callback, instant broadcast offline

The above is the detailed content of What is real-time communication on the Web?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn