Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying SignalR: Real-time Application Development - Second Edition
  • Table Of Contents Toc
SignalR: Real-time Application Development - Second Edition

SignalR: Real-time Application Development - Second Edition

By : Einar Ingerbrigsten
3.7 (3)
close
close
SignalR: Real-time Application Development - Second Edition

SignalR: Real-time Application Development - Second Edition

3.7 (3)
By: Einar Ingerbrigsten

Overview of this book

With technology trends, demands on software have changed with more and more skilled users. Over the past few years, with services such as Facebook, Twitter and push notifications on smartphones, users are now getting used to being up to date with everything that happens all the time. With SignalR, the applications stay connected and will generate notifications when something happens either from the system or by other users thus giving new opportunities to enter into this new, exciting world of real-time application development. This is a step-by-step guide that follows a practical approach helping you as a developer getting to get started with SignalR by learning its fundamentals. It will help you through building real-time applications using the new methods and functions in the SignalR framework. Starting from getting persistent connections with the server, you will learn the basics of connecting a client to the server and how the messaging works. This will be followed by setting up a hub on the server and consuming it from a JavaScript client. Next you will be taught how you can group connections together to send messages. We will then go on to know how you can have state in the client to handle specific operations like connecting or disconnecting. Then, moving on you will learn how to secure your SignalR connections using OWIN and scaling SignalR across multiple servers. Next you will learn building a client for WPF and building a client using Xamarin that targets Windows Phone, iPhone and Android. Lastly, you will learn how to monitor the traffic in SignalR using Fiddler, Charles and hosting SignalR using OWIN.
Table of Contents (13 chapters)
close
close
11
11. Hosting a Server Using Self-hosted OWIN
12
Index

Chapter 2. Persistent Connections

For years in network programming, we have been using sockets and communicating with these. Although we now have sockets on the Web as well, we are not guaranteed that we will have it in all environments. We, therefore, need an abstraction that helps us out with this and picks the right transport mechanism for us. In comes persistent connections. This chapter will cover the basics of getting a client connected to the server and how the messaging works.

In this chapter, the following topics will be covered:

  • Getting started with single-page applications
  • Getting started with AngularJS
  • Setting up a web application with SignalR
  • Exposing a persistent connection on the server
  • Consuming the connection in a JavaScript client

At this stage, the developer should be having the beginning of a single-page web application connected to a server.

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
SignalR: Real-time Application Development - Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon