Module: ChromeRemote

Defined in:
lib/chrome_remote.rb,
lib/chrome_remote/client.rb,
lib/chrome_remote/socket.rb,
lib/chrome_remote/version.rb,
lib/chrome_remote/web_socket_client.rb

Defined Under Namespace

Classes: ChromeConnectionError, Client, Socket, WebSocketClient

Constant Summary collapse

DEFAULT_OPTIONS =
{
  host: "localhost",
  port: 9222
}
VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.client(options = {}) ⇒ Object



15
16
17
18
19
20
# File 'lib/chrome_remote.rb', line 15

def client(options = {})
  options = DEFAULT_OPTIONS.merge(options)
  logger = options.delete(:logger)

  Client.new(get_ws_url(options), logger)
end