SlideShare a Scribd company logo
http://dublinalt.net
@dublinaltnet
Alt.net Ireland LinkedIn
Group
Google Group - dublinaltnet
Sponsored by
www.wonga.com
www.openwonga.com
What is SignalR?
• It’s a library for adding real-time functionality to an
application
• It’s open source, written by Microsoft Open
technologies
• Free to use under Apache 2.0. License
When to use SignalR
• Do you have an app that requires a page to refresh
in order to get new data ?
o Refresh data using Ajax or just a page reload
• Need to notify client(s) about new event(s) ?
• Need duplex communication?
o Ex: Real time document editing
o Chat
o Game
What OS is supported?
• Server
o Microsoft Windows
• Windows 7,8
• Windows Server 2008 R2, 2012
• Windows Azure
o Linux with Mono
• Clients
o WPF
o WinRT
o Windows Phone
o Silverlight
o JavaScript Client
o iOS (community supported)
Things to know before
deploying
• .Net Framework 4.0 & 4.5
• IIS 7.x or 8
o IIS Express is also supported
• WebSockets are supported only by IIS 8 (including
IIS8 Express)
Browser support
• Internet Explorer
o WebSockets (10+)
o ForeverFrame (8+)
o Long polling (8+)
• Firefox, Chrome, Safari
o WebSockets
o Server-Sent Events
o Long polling
How does it work?
Hubs API
• High level API that allows to make remote
procedure calls from a server to connected clients.
• Easy to use
{demo}
• {Change shape demo}
Configuration explained
• To start using HubsApi (Web Client):
o Define a root that client will used to connect to our Hub class. Use
Route.Table.MapHubs() in your Application_Start method
o Default route is “/signalr”
o Route can be customized by assigning a new value to route URL:
• Server side configuration:
o RouteTable.Routes.MapHubs("/signalr", new HubConfiguration())
• JavaScript configuration:
o .connection.hub.url = "/signalr”
• Create a Hub class – a class that will allow us to call
client methods.
o Hub class must inherit form Microsoft.Aspnet.Signalr.Hub
Transport selection
1. WebSocket
o If IE 8 or earlier then skip step 2 & 3
o If Cross-domain request, check if client & server supports WebSocket else
use 4.
2. ServerSent Event
3. Forever Frame
4. Long Polling
5. SignalR supports custom transport selection
o Developers can specify the transport selection order
connection.start({ transport: ['webSockets','longPolling'] });
Things to remember
• There is no compile time validation
• Cross-Domain connection is not configured by
default
• do not use jQuery.support.cors=true
Q & A
• @DorinManoli

More Related Content

PPTX
Serverless Computing With Azure Functions
PPTX
Angular
PDF
Entity Framework Core 1.x/2.x Advanced
PDF
Building a company-wide data pipeline on Apache Kafka - engineering for 150 b...
PDF
Clovaを支える技術 機械学習配信基盤のご紹介
PPTX
IoT with SignalR & .NET Gadgeteer - NetMF@Work
PPTX
Introduction to ASP.NET
PDF
.NET Core 3.0 - What's new?
Serverless Computing With Azure Functions
Angular
Entity Framework Core 1.x/2.x Advanced
Building a company-wide data pipeline on Apache Kafka - engineering for 150 b...
Clovaを支える技術 機械学習配信基盤のご紹介
IoT with SignalR & .NET Gadgeteer - NetMF@Work
Introduction to ASP.NET
.NET Core 3.0 - What's new?

What's hot (6)

PPTX
Asp Net (FT Preasen Revankar)
PPTX
ASP.NET Brief History
PDF
AtlasCamp 2010: Macro Migration Guide for Confluence 4.0 - Ryan Thomas
PPTX
IBM SCO ( SmartCloud Orchestrator) integration with Network Management tool
PDF
C# 8 in Libraries and Applications
PDF
.NET Core Foundations - Dependency Injection, Logging & Configuration - BASTA...
Asp Net (FT Preasen Revankar)
ASP.NET Brief History
AtlasCamp 2010: Macro Migration Guide for Confluence 4.0 - Ryan Thomas
IBM SCO ( SmartCloud Orchestrator) integration with Network Management tool
C# 8 in Libraries and Applications
.NET Core Foundations - Dependency Injection, Logging & Configuration - BASTA...
Ad

Viewers also liked (6)

PPT
Intro to HTML5 audio tag
PPTX
Forms with html5 (1)
PDF
Video in html 5
PDF
Google html5 Tutorial
PPTX
HTML5 and Search Engine Optimization (SEO)
PDF
HTML5 Semantics, Accessibility & Forms [Carsonified HTML5 Online Conference]
Intro to HTML5 audio tag
Forms with html5 (1)
Video in html 5
Google html5 Tutorial
HTML5 and Search Engine Optimization (SEO)
HTML5 Semantics, Accessibility & Forms [Carsonified HTML5 Online Conference]
Ad

Similar to SignalR Dublin ALT.NET (20)

PDF
Introduction to SignalR
PPTX
Asynchrone Echtzeitanwendungen für SharePoint mit SignalR und knockout.js
PPTX
ASP.NET MVC 5 and SignalR 2
PDF
PPTX
Azure Web App services
PDF
Current & Future Use-Cases of OpenDaylight
PPTX
Modern application development with oracle cloud sangam17
PPTX
Building Real Time Applications with ASP.NET SignalR 2.0 by Rachel Appel
PPT
.NET Core Apps: Design & Development
PPTX
.NET microservices with Azure Service Fabric
PPTX
IOT15_Unit6.pptx
PPTX
Presentation Azure Chat Bot Project.pptx
PPTX
SOLID Programming with Portable Class Libraries
PDF
Building high performance microservices in finance with Apache Thrift
PPTX
Building Real time Application with Azure SignalR Service
PPTX
Introduction to .NET: The Ultimate Development Framework by Infinite Web Solu...
PDF
Made for Mobile - Let Office 365 Power Your Mobile Apps
PPTX
Delivering Developer Tools at Scale
PDF
Matrix.org decentralised communication, Matthew Hodgson, TADSummit
PDF
Azure Cloud Application Development Workshop - UGIdotNET
Introduction to SignalR
Asynchrone Echtzeitanwendungen für SharePoint mit SignalR und knockout.js
ASP.NET MVC 5 and SignalR 2
Azure Web App services
Current & Future Use-Cases of OpenDaylight
Modern application development with oracle cloud sangam17
Building Real Time Applications with ASP.NET SignalR 2.0 by Rachel Appel
.NET Core Apps: Design & Development
.NET microservices with Azure Service Fabric
IOT15_Unit6.pptx
Presentation Azure Chat Bot Project.pptx
SOLID Programming with Portable Class Libraries
Building high performance microservices in finance with Apache Thrift
Building Real time Application with Azure SignalR Service
Introduction to .NET: The Ultimate Development Framework by Infinite Web Solu...
Made for Mobile - Let Office 365 Power Your Mobile Apps
Delivering Developer Tools at Scale
Matrix.org decentralised communication, Matthew Hodgson, TADSummit
Azure Cloud Application Development Workshop - UGIdotNET

Recently uploaded (20)

PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Getting Started with Data Integration: FME Form 101
PDF
project resource management chapter-09.pdf
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
Modernising the Digital Integration Hub
PPTX
observCloud-Native Containerability and monitoring.pptx
Hindi spoken digit analysis for native and non-native speakers
O2C Customer Invoices to Receipt V15A.pptx
Enhancing emotion recognition model for a student engagement use case through...
Programs and apps: productivity, graphics, security and other tools
gpt5_lecture_notes_comprehensive_20250812015547.pdf
A contest of sentiment analysis: k-nearest neighbor versus neural network
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
cloud_computing_Infrastucture_as_cloud_p
Module 1.ppt Iot fundamentals and Architecture
Assigned Numbers - 2025 - Bluetooth® Document
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
1. Introduction to Computer Programming.pptx
Developing a website for English-speaking practice to English as a foreign la...
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
WOOl fibre morphology and structure.pdf for textiles
Getting Started with Data Integration: FME Form 101
project resource management chapter-09.pdf
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Modernising the Digital Integration Hub
observCloud-Native Containerability and monitoring.pptx

SignalR Dublin ALT.NET

  • 1. http://dublinalt.net @dublinaltnet Alt.net Ireland LinkedIn Group Google Group - dublinaltnet Sponsored by www.wonga.com www.openwonga.com
  • 2. What is SignalR? • It’s a library for adding real-time functionality to an application • It’s open source, written by Microsoft Open technologies • Free to use under Apache 2.0. License
  • 3. When to use SignalR • Do you have an app that requires a page to refresh in order to get new data ? o Refresh data using Ajax or just a page reload • Need to notify client(s) about new event(s) ? • Need duplex communication? o Ex: Real time document editing o Chat o Game
  • 4. What OS is supported? • Server o Microsoft Windows • Windows 7,8 • Windows Server 2008 R2, 2012 • Windows Azure o Linux with Mono • Clients o WPF o WinRT o Windows Phone o Silverlight o JavaScript Client o iOS (community supported)
  • 5. Things to know before deploying • .Net Framework 4.0 & 4.5 • IIS 7.x or 8 o IIS Express is also supported • WebSockets are supported only by IIS 8 (including IIS8 Express)
  • 6. Browser support • Internet Explorer o WebSockets (10+) o ForeverFrame (8+) o Long polling (8+) • Firefox, Chrome, Safari o WebSockets o Server-Sent Events o Long polling
  • 7. How does it work?
  • 8. Hubs API • High level API that allows to make remote procedure calls from a server to connected clients. • Easy to use
  • 10. Configuration explained • To start using HubsApi (Web Client): o Define a root that client will used to connect to our Hub class. Use Route.Table.MapHubs() in your Application_Start method o Default route is “/signalr” o Route can be customized by assigning a new value to route URL: • Server side configuration: o RouteTable.Routes.MapHubs("/signalr", new HubConfiguration()) • JavaScript configuration: o .connection.hub.url = "/signalr” • Create a Hub class – a class that will allow us to call client methods. o Hub class must inherit form Microsoft.Aspnet.Signalr.Hub
  • 11. Transport selection 1. WebSocket o If IE 8 or earlier then skip step 2 & 3 o If Cross-domain request, check if client & server supports WebSocket else use 4. 2. ServerSent Event 3. Forever Frame 4. Long Polling 5. SignalR supports custom transport selection o Developers can specify the transport selection order connection.start({ transport: ['webSockets','longPolling'] });
  • 12. Things to remember • There is no compile time validation • Cross-Domain connection is not configured by default • do not use jQuery.support.cors=true
  • 13. Q & A • @DorinManoli

Editor's Notes

  • #4: Ex: check order stats of an eCommerce appOn page customer supportGet latest tweets from your account?
  • #6: Windows 8 or Windows Server 2012
  • #8: Explain transport layers
  • #10: Browse the code , dependencies, how solution is configured
  • #11: Explain demo code
  • #12: Explain transport negotiation processEx. Defined transport selection fallback -> connection.start({ transport: ['webSockets','longPolling'] }); Try use fiddler