Asp. NET using SIGNALR to realize message push function pre-research and demo

Source: Internet
Author: User

Required environment: SIGNALR runs on the. NET 4.5 platform, which is illustrated here with ASP.net MVC 3;

I. INTRODUCTION

ASP. NET SIGNALR is a class library under ASP. NET, which enables real-time communication in ASP. NET projects.

Two. Principle

The implementation principle is similar to WCF or remoting, and is implemented using remote proxies. Implementation of the interface there are 2 kinds of persistentconnection and Hubs, of which persistentconnection is to achieve a long time JS round, hub is used to solve real-time information exchange problems, its use of JS dynamic load method to achieve, The client and server end use JSON to exchange data.

Three. Demo creation

1. Open nuget install Microsoft asp.net signalr

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.