O'Reilly logo

SignalR - Real-time Application Development - Second Edition by Einar Ingebrigtsen

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

Chapter 4. Groups

This chapter will cover how you can group connections together and target specific groups when sending messages. There will be times when you won't want to broadcast all messages to all clients; groups can help you send messages to the specific groups of connections. SignalR maintains which connections are in what groups, making it very easy to achieve. Groups allows you to join connections. When you are sending a message from the server, you can send it to a specific group by its group name, and only the connections in that group will receive the message, not the other connections.

In this chapter, we will cover the following topics:

  • Establishing groups on the server
  • Sending messages from the client to specific groups
  • Receiving ...

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