O'Reilly logo

SignalR Real-time Application Cookbook by Roberto Vespa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing a room-based chat application

One of the most common types of real-time application is messaging systems, and chat applications are a good example of such a category. In this recipe, we will build a web chat where users will log in using a nickname, and once logged in, they will be able to create and join rooms. After joining a room, they will be able to post messages and see what other users say. The application will, of course, miss many of the functionalities that we usually find in a chat application, but it should be good enough to showcase a concrete usage of several SignalR features, namely the following:

  • Calling methods on a hub from the client
  • Triggering client-side callbacks from the server
  • Using the Groups API

Getting ready ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required