SignalR is a new library for .Net developers for creating real time web functionality, can also be defined as asynchronous signalling library. SignalR provides two way communication between client and server. SignalR can be used for creating real time chat functionality in no time.
We will create a simple chat application in this as well as series of blogs.
Starting with getting signalR sdk.
1. It is available in Nuget packages and can be installed via "Manage NuGet Package".
2. After installing SignalR create "signalr/hubs" folder in your solution.
3. In your startup.cs add: "app.MapSignalR();"
4. In your services folder create a class -> ChatHub that inherits Hub class.
In above 4 steps we have created folder structure and essentials for using SignalR for our chat application.
In the next blog we will write code and see our first chat application running.
Happy Coding....
0 Comment(s)