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)
Receives the
WebSocketFrame object and resolves to truthy value when the waiting should resolve. |
WebSocket.WaitForFrameSentOptions |
setTimeout(double timeout)
Maximum time to wait for in milliseconds.
|
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)
WebSocketFrame
object and resolves to truthy value when the waiting should resolve.public WebSocket.WaitForFrameSentOptions setTimeout(double timeout)
30000
(30 seconds). Pass 0
to disable timeout. The default
value can be changed by using the BrowserContext.setDefaultTimeout()
.Copyright © 2022. All rights reserved.