Closed andrewvy closed 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.
async: true
async: pid()
Example:
ChromeRemoteInterface.RPC.Page.navigate(page_pid, %{url: "https://youtube.com"}, async: pid)
🎉
Closes https://github.com/andrewvy/chrome-remote-interface/issues/13.
This modifies the RPC option:
async: true
to also accept a pid, so thatasync: pid()
will cause the async message reply to be received at the specified pid.ChromeRemoteInterface.RPC.Page.navigate(page_pid, %{url: "https://youtube.com"}, async: pid)