Introduction

Understand the structure of this chapter.

Until now, we've only covered using singular messages in SignalR. But SignalR also supports message streaming.

Streaming is when, instead of sending all data at once, you send it in chunks. Perhaps, it’s a large object that gets split into smaller parts. It could also be a collection of objects, where each item is sent individually. There are many scenarios where we can use streaming.

The chapter consists of the following topics:

  • What is streaming used for?

  • Client streaming in SignalR.

  • Testing client streaming functionality in SignalR.

  • Server streaming in SignalR.

  • Testing server streaming functionality.

By the end of this chapter, we will have learned how to use both client-to-server and server-to-client streaming in SignalR.

Get hands-on with 1200+ tech skills courses.