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