1 Introduction
Instant messaging (IM) is RDIFramework.NET agile development framework offers a new Web-based IM, internal chat communication. Elegant interface for message communication to the interior of the frame is very convenient. Instant messaging IM-based RDIFramework.NET agile development framework to support routine user to user (point to point) chat, workflow circulation reminder, server push messaging and so on. There are similar QQ message reaches a sound notification, while the message is a lasting process, users immediate offline, the message will be received on the line, it will not cause loss of messages. Also it provides many extended interface for users to actually expand the use, very powerful and easy to use.
By "internal chat IM" We can extend many applications out. Special note here is that we are using the IM technology SignalR. .NET SignalR is a .NET library provided by the developer, can simplify the real-time Web developers to add functionality to process the application. Real-time Web function refers to a function: When the connected client server code can become available immediately to its push content, rather than waiting for the server to client requests new data. What is a Web real-time communication of it? It is to allow the client (Web page) and the server can inform each other messages and call the method, of course, is the real-time operation. SignalR provides a very easy to use high-end API, so that the server can be single or batch calls the JavaScript function on the client, and very easy to manage the connection, for example, the client connects to the server, or disconnect the connection, the client packet, and the client authorized to use SignalR are very easy to implement.
2, SignalR core technology
Technical SignalR main purposes: it appears main purpose is to implement the server actively pushes (the Push) a page message to the client, the client will not have to re-send the request or polling techniques used to obtain the message. Can be used in chat rooms, billboards, single-point communications, multi-point communications, even in conjunction with other techniques may be used for video chat, of course, also have other applications.
SignalR Implementation Mechanism: implementation mechanism SignalR with .NET WCF is similar, we are using remote agents to achieve. The specific use, there are two interfaces for different purposes: PersistentConnection and Hubs, which is to achieve a long PersistentConnection polling JavaScript (similar Comet), Hub is used to solve real-time information exchange, it is the use Javascript to dynamically upload the execution method to achieve. SignalR the entire connection, the clearing process is very beautiful package, all the client and server to exchange data using JSON.
Basic Flowchart:
3, function display
Instant messaging (IM) services include SignalR end, our internal IM chat service end as shown below, to use IM, you must first start the server.
After logging in the main interface frame bottom right solution will be displayed instant messaging (IM) icon, do not take up space user interface. When new information is brought automatically flashing icon, sound alerts at the same time there will be very convenient, similar to the QQ.
Click the icon will be displayed within the enterprise IM chat main interface, as shown below. In the IM user interface by department were displayed packets.
Online users will be highlighted, as shown below.
Double-clicking a user can send a message to the specified user, the chat interface is shown below:
In the figure above, we give "Chen Junxi" sent a message that we are now in a "wikstone" Chen Junxi user logs in the framework of a successful login will automatically prompt message, as shown below:
In the chat window that pops up, we can also send messages to the user's direct reply.
"Internal chat IM" not only as a simple chat tool, but in the course of business cooperative office also has good support, such as: When a user receives a to-do business, IM will be prompted with sound automatically, As shown below.
4, reference articles
4.1, SignalR development-related
-
The most comprehensive in the history of SignalR series of tutorials - Contents Summary
-
History of the most comprehensive series of tutorials SignalR -1, understanding SignalR
-
History of the most comprehensive series of tutorials SignalR -5, SignalR achieve one chat
-
The most comprehensive in the history of SignalR tutorial series -6, SignalR chat rooms
4.2, the relevant framework
-
Micro-channel public number Development Series - Fun micro letter Development - Contents Summary
-
RDIFramework.NET framework based Quartz.Net Detailed task scheduling and achieve results show
-
RDIFramework.NET - Fast information system development framework for .NET - Series catalog
-
The new V3.5 version RDIFramework.NET code generator released - a major upgrade
Along the way a number of years, thanks to supporters and users RDIFramework.NET framework, we can use the following address for more information.
RDIFramework.NET official website: http://www.rdiframework.net/
RDIFramework.NET official blog: http://blog.rdiframework.net/
It should be noted at the same time, all future technical articles subject to the official website, welcome to the collection!
RDIFramework.NET framework to build long-term thinking by the Hainan State Software Technology Co., Ltd. professional team, has been updated, has been upgraded, ease of use!
Welcome to the framework of official public attention RDIFramework.net micro letter (Micro Signal: guosisoft), keep abreast of the latest developments.
Scan the QR code immediate attention