Class WebSocket.WaitForFrameSentOptions

  • Enclosing interface:
    WebSocket

    public static class WebSocket.WaitForFrameSentOptions
    extends java.lang.Object
    • Field Detail

      • predicate

        public java.util.function.Predicate<WebSocketFrame> predicate
        Receives the WebSocketFrame object and resolves to truthy value when the waiting should resolve.
      • timeout

        public java.lang.Double timeout
        Maximum time to wait for in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. The default value can be changed by using the BrowserContext.setDefaultTimeout().
    • Constructor Detail

      • WaitForFrameSentOptions

        public WaitForFrameSentOptions()