Last post Mar 25, 2015 04:03 AM by sudip_inn
Mar 24, 2015 07:07 AM|sudip_inn|LINK
we know that when we connect to signalr then a unique connection id is given to each user. when two user talk to by signlar then i like to know what kind of user pc and network related info signalr hold at server end for which message always deliver to right
pc ? suppose three user connected to signalr hub call A, B and C
when user A send hello message to B then message is pushed to right user B not C. i just like to know how signalr understand to which pc message need to deliver because user who is getting message his pc could be a member of a large network and behind the
router. so how signalr deliver the message to right pc.
please discuss in details if possible.
Mar 24, 2015 01:48 PM|mansoor.omrani|LINK
This depends on the transport being employed to establish the connection. There are four transports:
The list is mentioned based on the priority of transports from top (high) to bottom (low).
WebSockets and Server-Sent Events are standards defined in HTML5. The fact that the server does not confuse connection of a client with another client lies in the implementation of these standards. i.e. WebSockets or Server-Sent Events are implemented in
a way that provide such functionality.
In Forever frame and long polling, the client sends a request to the server and the server answers it with delay and does not close the connection.
On the whole, it is the HTTP protocol (at high-level) and TCP (at low-level) that reliably create a network connection only between two ends.
You can assume that in SignalR a direct channel is created between server and client that only belongs to that user. Because the connection is started by the client, you cn assume a distinct channel is created for each client. So, the server will not take
the channel of a client with another client by mistake.
Mar 24, 2015 09:56 PM|Kevin Shen - MSFT|LINK
EveryUser Login in your Signalr System,it will have a connectionId,When you want to send message to other user.
You will send it through the ConnectedId.
I suggest that you could try to learn the connection-lifetime in SignalR:
Mar 25, 2015 04:03 AM|sudip_inn|LINK
i like to know what kind of information is passed to server from client when signalr client connect and get connection id ?
u said "You can assume that in SignalR a direct channel is created between server and client that only belongs to that user" the channel between client and server constant open when no message is passing back & forth or only the channel is open when message
is pushed from any end ?