Book Image

SignalR: Real-time Application Development - Second Edition

By : Einar Ingerbrigsten
Book Image

SignalR: Real-time Application Development - Second Edition

By: Einar Ingerbrigsten

Overview of this book

Table of Contents (19 chapters)
SignalR – Real-time Application Development Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
11
Hosting a Server Using Self-hosted OWIN
Index

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 to have a state on the client that is also on the server and that round-trips on every call in a transparent manner.