andrewvy / chrome-remote-interface

Elixir Client for the Chrome Debugger Protocol
https://hexdocs.pm/chrome_remote_interface
66 stars 30 forks source link

Add ability to use `async: pid()` to specify consumer #14

Closed andrewvy closed 6 years ago

andrewvy commented 6 years ago

Closes https://github.com/andrewvy/chrome-remote-interface/issues/13.

This modifies the RPC option: async: true to also accept a pid, so that async: pid() will cause the async message reply to be received at the specified pid.

Example:

ChromeRemoteInterface.RPC.Page.navigate(page_pid, %{url: "https://youtube.com"}, async: pid)

bcardarella commented 6 years ago

🎉