Wait for a WebSocketMessage containing a specific piece of text to arrive from the server.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax
public WebSocketMessage WaitForMessageContaining( string text, TimeSpan perMessageTimeout )
Parameters
- text
- Type: System String
The text to look for in each WebSocketMessage.
- perMessageTimeout
- Type: System TimeSpan
The maximum amount of time to wait for each message to arrive from the server.
Return Value
The first message to arrive from the server WebSocketMessage that contains text.Exceptions
Exception | Condition |
---|---|
TimeoutException | No message arrived from the server before the perMessageTimeout period elapsed. |
See Also