2. What is “Real Time”
experience
“Real Time” web techniques
What is signalR
SignalR protocol
Connection & Hub
Groups and private
messages
.Net client
Self Hosting
Scaleout
10. • Not all servers support web sockets
• Not all network components support web sockets
• Its API is limited
11. • Code once, deploy everywhere
• As cross-platform as possible
• Simple API to work with
12. • Open source project
• Abstraction layer over connection technique
• Can be self-hosted
• Call client methods from the server
Polling
ForeverFrames
Long-Polling
ServerSentEvents
WebSocket
=
13. WebSocket
• Good performance
• Strict prerequisites
• Limited API
SignalR
• Abstraction layer
• Rich API
• Supports WebSocket
26. • Three NuGet packages to install
• Create class with Configuration method.
• Map hub in the Configuration method
• Use the class as a type parameter to
WebApplication.Start
27.
28. • signalR supports ASP.NET authentication &
authorization
• AuthorizeAttribute
• Accessing user data from context
• Authenticated request may downdgrade
to serverSentEvents in some clients.
32. Real time experience is more than
just polling
Using signalR can use the best
available technique
It can be self hosted
It can scale out
It has several clients