WebSocketMessageQueue WaitForMessageContaining Method C# API
Wait for a WebSocketMessage containing a specific piece of text to arrive from the server.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.5.77 (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

ExceptionCondition
TimeoutExceptionNo message arrived from the server before the perMessageTimeout period elapsed.
See Also