Skip to content

Client application for interacting with the Chroxy Headless Chrome Proxy Service

License

Notifications You must be signed in to change notification settings

holsee/chroxy_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChroxyClient

Chroxy Chrome Server client for Chroxy which is intended to be used in conjunction with ChromeRemoteInterface.

Installation

def deps do
  [
    {:chroxy_client, "~> 0.1.0"}
  ]
end

Usage

Obtaining RDP WebSocket to Chrome Page

{:ok, ws} = ChroxyClient.session! %{host: "localhost", port: 1330}
# ws://localhost:1331/devtools/page/2CD7F0BC05863AB665D1FB95149665AF

Using with ChromeRemoteInterface

Establishing a Client Connection

# Requests a WebSocket to a Chrome Page
{:ok, pid} = ChroxyClient.page_session! %{host: "localhost", port: 1330}

Using Remote Debug Protocol Client

# via Remote Debug Protocol over WebSocket instruct page to goto url
url = "https://github.com/holsee"
{:ok, res} = ChromeRemoteInterface.RPC.Page.navigate(pid, %{url: url})

About

Client application for interacting with the Chroxy Headless Chrome Proxy Service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages