INNER CODE UNIT · Ruby
self
rubycdp/ferrum · lib/ferrum/client.rb:33
def self.event_name(event, session_id)
[event, session_id].compact.join("_")
end
def initialize(client, session_id)
@client = client
@session_id = session_id
end
#
# Sends a CDP command scoped to this session.
#
# @param [String] method
# The CDP method name, e.g. `"Page.navigate"`.
#
# @param [Boolean] async
# Whether to send the command without waiting for a response.
#