Open jitendrajain12 opened 7 years ago
How does this work?
clientResponse = await WSMessageSendSuccess(reqObject, callback);
Hi,
Could you please advise how to implement a proper SendAsync method in order to get the completion response?
Thank you.
We are trying to implement request/response paradigm for Websocketsharp library exactly same it works for HttpClient's request/response async behavior. We are trying to achieve it using the async callback as given in below code. We tried to get SendAsync method's OnMessage callback event to wait until the server sends the response. We are able to get the response within the scope of the SendAsync method but as soon as we come out of SendAsync scope it clears out the value of the response.
string clientResponse = null;