| Modifier and Type | Field and Description |
|---|---|
Predicate<WebSocketFrame> |
predicate
Receives the
WebSocketFrame object and resolves to truthy value when the waiting should resolve. |
Double |
timeout
Maximum time to wait for in milliseconds.
|
| Constructor and Description |
|---|
WaitForFrameSentOptions() |
| Modifier and Type | Method and Description |
|---|---|
WebSocket.WaitForFrameSentOptions |
setPredicate(Predicate<WebSocketFrame> predicate) |
WebSocket.WaitForFrameSentOptions |
setTimeout(double timeout) |
public Predicate<WebSocketFrame> predicate
WebSocketFrame object and resolves to truthy value when the waiting should resolve.public Double timeout
30000 (30 seconds). Pass 0 to disable timeout. The default
value can be changed by using the BrowserContext.setDefaultTimeout().public WebSocket.WaitForFrameSentOptions setPredicate(Predicate<WebSocketFrame> predicate)
public WebSocket.WaitForFrameSentOptions setTimeout(double timeout)
Copyright © 2021. All rights reserved.