mandrewcito / signalrcore

SignalR Core python client
https://mandrewcito.github.io/signalrcore/
MIT License
115 stars 53 forks source link

Client results #106

Open Th3Hunger opened 1 year ago

Th3Hunger commented 1 year ago

How can the server request a result from a client? as shown below

https://learn.microsoft.com/en-us/aspnet/core/signalr/hubs?view=aspnetcore-7.0#client-results

Example in C# Client:

 hubConnection.On("GetMessage", async () =>
{
    Console.WriteLine("Enter message:");
    var message = await Console.In.ReadLineAsync();
    return message;
});

How can I send results back to the server within an event?