Skip to Main Content
.NET Core 2.0 By Example
book

.NET Core 2.0 By Example

by Neha Shrivastava, Rishabh Verma
March 2018
Beginner to intermediate content levelBeginner to intermediate
458 pages
10h 34m
English
Packt Publishing
Content preview from .NET Core 2.0 By Example

Coding the Chat hub module

Now let's code the Chat hub module for our Let's Chat web application. We have already seen how to create a simple real-time web application using SignalR, while developing a Tic-Tac-Toe game, so we would not spend much time on things we have already seen. Recall that we already have authentication implemented using Facebook and we have user details, such as the display name and profile picture. We need to develop the following as part of our Chat hub module:

  • List all online users connected to the Chat hub
  • Update the online list of users, as and when someone joins or leaves the chat room
  • Any chat message sent in the room goes to all the connected users

Quite clearly, to meet these requirements, we would need to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET Core 3 and React

ASP.NET Core 3 and React

Carl Rippon
Enterprise Application Development with C# 9 and .NET 5

Enterprise Application Development with C# 9 and .NET 5

Ravindra Akella, Rishabh Verma, Arun Kumar Tamirisa, Suneel Kumar Kunani, Bhupesh Guptha Muthiyalu

Publisher Resources

ISBN: 9781788395090Supplemental Content