SlideShare a Scribd company logo
Md. Mojammel Haque
mojamcpds@gmail.com
http://codermojam.com
http://github.com/mojamcpds
Skype: mojamcpds1
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
RPC is a mechanism that enables the calling the
method of a system from an external/independent
system.
Real Time App with SignalR
Real Time App with SignalR
Real Time App with SignalR
SignalR uses these components to have the persistent connection between client and server
and make the real time client server communication.
To call a method from client to server SignalR uses some dynamic keywords
provided by SignalR API.
Consider we have a client side method named MyClientFunc. The server
application will have to call this method. Server will make the call as follows:
Clients.Client(id).MyClientFunc()
•Clients:
•Clients is a dynamic keyword provided by SignalR.
•Clients contains the list of all connected client of the server.
•Client(id):
•Client is also a dynamic keyword provided by SignalR uses to identify the specific client by
is connection Id.
•When a client is connected to the server side application (that is powered by SignalR) are
immediately given a unique id of type Guid. The client can be identified by that id easily.
•MyClientFunc:
•The name of the method of Client that will invoke to server
The code go ahead and invoke the method from client to server. The
interaction actually happens over HTTP protocol.
Over HTTP Protocol? What about request-response? How server send
the response without any client request? How server invoke method
from client?
It is possible because SignalR always keeping the persistent connection alive between
client and server. During this connection period there is a dedicated channel is created
between client and server to talk to each other. So if something interesting happen to
the server the server can always push it to client through that channel. Also server can
call the method from client by using that channel.
During calling method from server to client it uses simple Ajax style call
Consider that we have a function in Server side called MyServerFunc. Now
the client will call it as follows:
$.connection.myhub.Server.myServerFunc()
$.connection:
Refers the persistent connection that established by the SignalR between client and
server.
myHub:
This is the name of the Hub class that resides inside server. Client will reach into that
Hub.
A server can have multiple Hubs. So in order to reach into a specific Hub client will
refer the name of that Hub
Server:
Once we reach into the specific hub we can refer the server method by using the
keyword Server.
myServerFunc():
The name of the method that we want to invoke from server to client.
From above discussion we came out a realization that
SingalR really abstracts the network transport layer and provides easy APIs on both end.
We don’t have to worry about the network transportation protocols. SingalR automatically figure out the
best transport protocol suited for the communication based on the environments of client and server.
We only maintain the Hub on server side and Hub Proxy on the client side. So we can easily invoke the
method in either end and have easy communication between the client and server.
Real Time App with SignalR

More Related Content

PPTX
Real time app with SignalR
PPTX
Ws discovery in wcf 4
PPTX
Messaging APIs of RingCentral
PDF
How does a VPN work - A Quick Guide by VPNSTORE
PPT
Bulk SMS gateway integration in asp.net
PPSX
Signalr with ASP.Net part2
RTF
MSB-Remote procedure call
PPTX
Real-Time Communication
Real time app with SignalR
Ws discovery in wcf 4
Messaging APIs of RingCentral
How does a VPN work - A Quick Guide by VPNSTORE
Bulk SMS gateway integration in asp.net
Signalr with ASP.Net part2
MSB-Remote procedure call
Real-Time Communication

Similar to Real Time App with SignalR (20)

PPTX
IS UNIT 3 PPT- PART 2.pptx is very helpful for engineering students of any El...
PDF
How a network connection is created A network connection is initi.pdf
PPT
remote procedure calls
PPTX
Middleware in Distributed System-RPC,RMI
PDF
How SignalR Can Simplify Your Messaging Needs? | Virtuoso Infotech
PPTX
ASP.NET MVC 5 and SignalR 2
PPTX
Remoting and serialization
PPTX
Remote procedure call on client server computing
PDF
awsappmesh.pdf
PDF
Android framework design and development
PPTX
Real Time Web with SignalR
DOC
Remote procedure calls
PPTX
Stephy
PPTX
Stephy
PPTX
The Fundamental of Secure Socket Layer (SSL)
PPTX
Fundamental of Secure Socket Layer (SSl) | Part - 1
PDF
The application architeture is design by the application developer a.pdf
PPTX
CLIENT SERVER IN OS.ppt
PDF
.NET Core, ASP.NET Core Course, Session 19
PPTX
Client server chat application
IS UNIT 3 PPT- PART 2.pptx is very helpful for engineering students of any El...
How a network connection is created A network connection is initi.pdf
remote procedure calls
Middleware in Distributed System-RPC,RMI
How SignalR Can Simplify Your Messaging Needs? | Virtuoso Infotech
ASP.NET MVC 5 and SignalR 2
Remoting and serialization
Remote procedure call on client server computing
awsappmesh.pdf
Android framework design and development
Real Time Web with SignalR
Remote procedure calls
Stephy
Stephy
The Fundamental of Secure Socket Layer (SSL)
Fundamental of Secure Socket Layer (SSl) | Part - 1
The application architeture is design by the application developer a.pdf
CLIENT SERVER IN OS.ppt
.NET Core, ASP.NET Core Course, Session 19
Client server chat application
Ad

Recently uploaded (20)

PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Introduction to Artificial Intelligence
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Transform Your Business with a Software ERP System
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
history of c programming in notes for students .pptx
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
CHAPTER 2 - PM Management and IT Context
How to Migrate SBCGlobal Email to Yahoo Easily
Odoo POS Development Services by CandidRoot Solutions
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
2025 Textile ERP Trends: SAP, Odoo & Oracle
VVF-Customer-Presentation2025-Ver1.9.pptx
Introduction to Artificial Intelligence
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Operating system designcfffgfgggggggvggggggggg
Design an Analysis of Algorithms II-SECS-1021-03
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Transform Your Business with a Software ERP System
Online Work Permit System for Fast Permit Processing
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
history of c programming in notes for students .pptx
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Wondershare Filmora 15 Crack With Activation Key [2025
Ad

Real Time App with SignalR

  • 19. RPC is a mechanism that enables the calling the method of a system from an external/independent system.
  • 23. SignalR uses these components to have the persistent connection between client and server and make the real time client server communication.
  • 24. To call a method from client to server SignalR uses some dynamic keywords provided by SignalR API.
  • 25. Consider we have a client side method named MyClientFunc. The server application will have to call this method. Server will make the call as follows: Clients.Client(id).MyClientFunc()
  • 26. •Clients: •Clients is a dynamic keyword provided by SignalR. •Clients contains the list of all connected client of the server. •Client(id): •Client is also a dynamic keyword provided by SignalR uses to identify the specific client by is connection Id. •When a client is connected to the server side application (that is powered by SignalR) are immediately given a unique id of type Guid. The client can be identified by that id easily. •MyClientFunc: •The name of the method of Client that will invoke to server
  • 27. The code go ahead and invoke the method from client to server. The interaction actually happens over HTTP protocol. Over HTTP Protocol? What about request-response? How server send the response without any client request? How server invoke method from client? It is possible because SignalR always keeping the persistent connection alive between client and server. During this connection period there is a dedicated channel is created between client and server to talk to each other. So if something interesting happen to the server the server can always push it to client through that channel. Also server can call the method from client by using that channel.
  • 28. During calling method from server to client it uses simple Ajax style call
  • 29. Consider that we have a function in Server side called MyServerFunc. Now the client will call it as follows: $.connection.myhub.Server.myServerFunc()
  • 30. $.connection: Refers the persistent connection that established by the SignalR between client and server. myHub: This is the name of the Hub class that resides inside server. Client will reach into that Hub. A server can have multiple Hubs. So in order to reach into a specific Hub client will refer the name of that Hub Server: Once we reach into the specific hub we can refer the server method by using the keyword Server. myServerFunc(): The name of the method that we want to invoke from server to client.
  • 31. From above discussion we came out a realization that SingalR really abstracts the network transport layer and provides easy APIs on both end. We don’t have to worry about the network transportation protocols. SingalR automatically figure out the best transport protocol suited for the communication based on the environments of client and server. We only maintain the Hub on server side and Hub Proxy on the client side. So we can easily invoke the method in either end and have easy communication between the client and server.