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.
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL8AAAF8CAIAAAARg/3/AAATj0lEQVR4nO2dP6vsxhmHFX+EdAZ3QYKbuEgcCHHp4pLKuxBOrgu7Djdl0DpgY6c+xKkVUjhVcHOb00zjKoatwgWnGLhf4HAxNhj0DVLo38zonZH0Spo/2t/yYPbuStqD9HhmVvPbd7I8LwDgkQX/C0C6wB7AZ649d3d/2PBTnz374OHh4Xq9Xq/Xjz/+OPhZADzm2vPdd99tJdCzZx9cu8f9/f3U9hdR9w9Znbycl1MlvX1Wysy1p67rx8fHTQTqWx1VHXsLdBHdhWyv6V7nYvggMJMF9jx//nwTgcYNz/39/fV6tWyvXtRdLzDsWcwCe/K82ESgq/K4v79v1Floz0XUUghZ16LMm46mfYhS2bJsX5fVuT3asKUoc/U4ykNctA81dzkr/w5//cKyzJ48L7744u+Pj4/vvPNr9kdeqcfDw4Nle7LnuojBiYvoL+QwXrmIZphkvtg5UQpZnUfHoTXVdilFLS7BL1skLLPn7u4Pj4+Pz58/Z3/eV199Rdrz7NkHll3UUXPzf38xahv614tSNCZp3VD7otJEEW0M+Xy8y6mSamN22yywZ1t1vv76677VsatTWIYji+w5V7K3Z9hydHCbPcYuRd60gui5ln7n2kqdGV/Ue6bsMXuufkDTtRDki/RxyJ6LbmlOlUQLNNeeH3/8cY06OfVVax6T9qj9i3b5++Hw0EioPZHZcxWlcI+a61pc8rLvSIk26daYa89KdfLOnoXqsMHXbx8cdZ4L9vgA9gA+R7UH+AD2AD6wB/CBPYAP7AF8wmQLwTEIkC1ciDpL6pxaau4C7xgfAyYBsoU945l2ajMtI2GfH1Bmu4AvfGQLbX4stsd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ZWspLCP//++PHj339M+aMgEy0akrtXfo9Yw8KTCbl1qc5aCLNhEYpQBUUbKAfk9F8mVrGSwt//u7FkQloGovBGohoS16VosYaFPOiQWhfrtOXAfrTbJoTJKhJgsQsyIdF2JYXVNtSm9CbXsGjxQJRVJKACmVhHQ21Kb3YNi5jpVawiATWQiXU0FM8W1rBweswqEhDBrsoEAKwMZAIAFJAJAFBAJgBAYdMysQjZETYD6A9b8SaYGgzQJ7Yz6OAxHECPQCYAQGFrMsGoA6AvbO1JR/0tZwDoKngTAKBAbAIAFJAJAFBAJgBAgelVAKDAZG0AUODVLwBQQCYAQAGZAAAFZAIAFJpkgnAjAJgIb4KHlwD7jj7oYCoUwJ6DTACAQpRMMOoA2GeinnSwNgTAPoM3AQAKxCYAQAGZAAAFZAIAFJheBQAKTNYGAAVe/QIABWQCABSQCQBQQCYAQAGZAAAFZAIAFJAJAFD4P6NLzy0oEgkNAAAAAElFTkSuQmCC)
4. In your services folder create a class -> ChatHub that inherits Hub class.
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWsAAACqCAIAAADk5/mKAAAUwUlEQVR4nO2dXWgc1xmG1QabQJo2jXvREjrIiiw7CAW5iiJvEmO8XTtg1MQIo6C2RhdioZUwvXBbcC6EFDo4ocSOIS4KFYZOaUkxSKbYBHy1lEDrNsEpRDLGKhhTjKEuFYWAe7W9mL/z8535n50zM+/LS7KaPTNndrzn2e+cOeebvpGRURiG4WTuK/wMYBgur0EQGIaTGwSBYTi5QRAYhpMbBIFhOLlBEBiGkxsEgWE4uUEQGIaTWyRI35ufwL104d8AGE5jEAQEgeHkBkFAEBhObhAEBIHh5AZBQBAYTu66EORL9oszrr0tRbvwbwAMp3EUgtw697Dr6OGD8Tc/6Xvz7rXuo3MXYzUVeZfggySoIsTnz5+/efPmxsbGzZs3z58/nx8UfnTl7mf3v/jRlbuhG0EQuOwOI8jFB3e63Wtr/p/n1qI3b7ZY0QQ588nGxsbly5dPvvP7y5cvb2xs2JFIRH92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X1WZIL2aSAaCQPUVCAJBUHKBIBAEJRcIAkFQcoEgEAQlFwiSmdrWFrI3Q3WT3gRhU4REnpnqqacEwRMkoFpKZ4JMDV1YGvBfZ/fUyzyEp1hBtdT/Afau2f2n65BPAAAAAElFTkSuQmCC)
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)