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 ...

Get SignalR - Real-time Application Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.