How to get the return value of the .send function (async).
If in the Hub (signalr hub in c#), there is a function, for example public string FOO() that returns a value, how to get that value calling to
hub_connection.send("FOO", [])
Here are 2 examples of using the callback. There is no return value, websocket methods are not synchronous. To listen from a callback , you must wait for a message with your invocation id.
How to get the return value of the .send function (async).
If in the Hub (signalr hub in c#), there is a function, for example
public string FOO()
that returns a value, how to get that value calling tohub_connection.send("FOO", [])
.send does not seem to be ASYNC function
Thanks
Hi,
This functionality solves your problem? github.com/mandrewcito/signalrcore...
If does not, let me know
thank you!
Not sure. Is it the on_invocation parameter? I tried but did not understand how to get the return value.
Do you have an example?
Thanks!
Yes,
Here are 2 examples of using the callback. There is no return value, websocket methods are not synchronous. To listen from a callback , you must wait for a message with your invocation id.
github.com/mandrewcito/signalrcore...
github.com/mandrewcito/signalrcore...