Header add

What is SignalR ?
SignalR is a library to add real-time web functionality to their applications. Real-time web functionality is the ability to have server-side code push content to the connected clients as it happens, in real-time. SignalR takes advantage of several transports, automatically selecting the best available transport given the client's and server's best available transport. SignalR takes advantage of WebSocket, an HTML5 API that enables bi-directional communication between the browser and server. SignalR will use WebSockets under the covers when it's available, and gracefully fall back to other techniques and technologies when it isn't, while the application code remains the same.

Why use SignalR ?
Using SignalR we can create web applications that require high frequency updates from the server. For examle, a dashboard, games and chat applications. SignalR uses Web Sockets and the HTML5 API that helps in bidirectional communication. It also provides an API for server-to-client Remote Procedure Calls (RPC) call, it may be something new for you because most of the time we use a request and response model.
SignalR includes automatic connection management, it provides the facility to broadcast messages to all connected clients or to a specific client. The connection between the client and server is persistent while in HTTP it isn't persistent.

Where to use SignalR ?
Chat: It is very easy to implement a chat application using SignalR, either it could be one-to one or a group chat.
Notification: If you want to notify 1 client or all clients then we can use SignalR. Notification can be like some alerts, a reminder, feedback or comments and so on. 
Gaming: SignalR helps to create a Gaming application that requires frequently pushing from a server and so on.



Summary
    In this tutorial we discussed What is SignalR and Why and where we use SignalR. If have any question related to this topic then give your feedback.

Post a Comment

Previous Post Next Post