I might missing something on documentation but there is any possibility when the 'Send' method is called to wait for the answer and not through a callback method?
问问题
798 次
1 回答
1
Because was used different threads I used ManualResetEvent
. After send
method (from WebSocket
) was called the thread was put on hold using WaitOne
method from ManualResetEvent
and on ws response the Set method was called and the response was read from a local variable.
于 2014-01-06T21:16:25.557 回答