Search code examples
c#signalr-hubsignalr.client

signalR client hangs on wait()


SignalR client hangs on wait();
Here is my code

Proxy.Invoke<string>("IO_Table_Game_Status", getTableGameStateJsonReq).ContinueWith((responseJson) =>
{
    string tablestatusResp = responseJson.Result;
}).Wait();

Here I need to get the Json value in tablestatusResp. But it's showing empty value.


Solution

  • var data=Proxy.Invoke<string>("IO_Table_Game_Status", getTableGameStateJsonReq).Result;
    

    Hope this help you.