SignalR 2 and MVC 5 preliminary

Source: Internet
Author: User

Do the project to use a chat room function, find a good long time also can not find the appropriate case, later colleagues suggested I look at SIGNALR, the results found on-line data a large, is not what they want, and then moved the official API to see two days, finally some understand. Http://www.asp.net/signalr/overview/guide-to-the-api

Here is an example of the official give you to translate come to see (translation is not good place everybody laughed at, after all, is a novice)

Overview

This example introduces the development of real-time Web applications with ASP. NET SignalR 2 and ASP. 5. and the code in (SignalR Getting Started tutorial) is the same, but adds the code to the MVC 5 application.

This topic describes the following SIGNALR development tasks:

    • Add the SIGNALR Library to the MVC 5 application.
    • Create a hub and OWIN launch analogy to send content to the client.
    • Send a message in the Web page with the SignalR jQuery Library and display an update from the hub.

The following is the effect of the completed chat program running in the browser . (I am lazy, with the official pictures)

Steps:

    • Establish engineering
    • Running an instance
    • Check the Code
    • Next
Establish engineering

Prerequisites:

    • Visual Studio 2013. If it is not installed, see ASP. Downloads to get the free Visual Studio Express development Tool.

SignalR 2 and MVC 5 preliminary

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.