Is sequence of events guaranteed in SignalR?

If I have a simple SignalR application that looks like this:

Customer:

chat.client.addMessage = function (message) {
    console.log(message);
};

...

var result = chat.server.send("Hello, World.");
console.log(result);

      

Server Hub:

public int Send(string message)
{
    Clients.All.addMessage(message);
    return 10;
}

      

The result looks like this:

10
Hello, World.

      

I'm not entirely sure which parts of the asynchronous magic work and which ones don't, so I would like to know if this order is guaranteed?

Is it guaranteed to return a server side return value before any server side push messages that might trigger this call?

+3
javascript c # signalr signalr-hub


source to share


No one has answered this question yet

Check out similar questions:

1678
Binding events to dynamically created elements?
86
Can I enable both SignalR and RESTful APIs?
72
Calling SignalR Hub Clients from Other Systems
36
Sample SignalR Application Application
sixteen
Serializing SignalR Signal Hub Method Parameters
13
/ signalr / hubs are not loaded in asp.net mvc4: Throws 404
nine
SignalR js client seems to ignore url port
3
Why are messages being pushed out of an MVC app using SignalR not accessing the client?
1
How is this code achieved in SignalR
0
SignalR client trigger events



All Articles
Loading...
X
Show
Funny
Dev
Pics