https://github.com/holsee/chroxy_client
Client application for interacting with the Chroxy Headless Chrome Proxy Service
https://github.com/holsee/chroxy_client
Last synced: about 1 month ago
JSON representation
Client application for interacting with the Chroxy Headless Chrome Proxy Service
- Host: GitHub
- URL: https://github.com/holsee/chroxy_client
- Owner: holsee
- License: mit
- Created: 2018-05-01T13:13:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T11:36:55.000Z (about 6 years ago)
- Last Synced: 2025-04-11T18:41:52.538Z (2 months ago)
- Language: Elixir
- Size: 85 KB
- Stars: 7
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChroxyClient
Chroxy Chrome Server client for [Chroxy](https://github.com/holsee/chroxy_client) which is intended to
be used in conjunction with `ChromeRemoteInterface`.## Installation
```elixir
def deps do
[
{:chroxy_client, "~> 0.1.0"}
]
end
```## Usage
### Obtaining RDP WebSocket to Chrome Page
``` elixir
{:ok, ws} = ChroxyClient.session! %{host: "localhost", port: 1330}
# ws://localhost:1331/devtools/page/2CD7F0BC05863AB665D1FB95149665AF
```### Using with `ChromeRemoteInterface`
Establishing a Client Connection
``` elixir
# Requests a WebSocket to a Chrome Page
{:ok, pid} = ChroxyClient.page_session! %{host: "localhost", port: 1330}
```Using Remote Debug Protocol Client
``` elixir
# 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})
```