INNER CODE UNIT · Ruby

command

rubycdp/ferrum · lib/ferrum/client.rb:61

    def command(method, async: false, timeout: nil, **params)
      message = build_message(method, params)
      @client.send_message(message, async: async, timeout: timeout)
    end

    #
    # Subscribes to a CDP event scoped to this session.
    #
    # @param [String] event
    #   The CDP event name.
    #
    # @return [Integer]
    #   The subscription id, used to unsubscribe via {#off}.
    #
    def on(event, &)
      @client.on(event_name(event), &)
    end

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…