Chapter 5. State

At one level, applications need to keep data that puts the application in a certain state. Traditionally, this data is kept either in memory on the server or on the client and gets passed around between the client and the server, and often front and center in the calls as parameters. This chapter will cover how you can have a state in the client that is available automatically on the server. This type of state is then included in every round-trip taken between the client and the server as the result of a method invocation.

In this chapter, the following topics will be covered:

  • Setting a state on the client that will be round-tripped
  • Setting a state on the server that will be round-tripped

At this stage, the developer should be able ...

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.