Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[extension API] messaging flow #143

Closed
paulirish opened this issue Aug 19, 2014 · 2 comments
Closed

[extension API] messaging flow #143

paulirish opened this issue Aug 19, 2014 · 2 comments

Comments

@paulirish
Copy link
Member

@paulirish paulirish commented Aug 19, 2014

https://developer.chrome.com/extensions/devtools has great overview of communicating between the various pieces, but it's still a little incomplete.

One tricky area is passing messages from a contentscript back into a devtools panel.

There's no direct connectivity between the page being inspected and DevTools extension panels -- we usually recommend this flow: DOM messaging from the injected inspected page code to the content script, then extension messaging to send that to the background page and the front-end iframe.

Example: polymer extension message passing via CustomEvent on the window

another option is: buffering events in inspected page and polling them

@paulirish paulirish changed the title devtools extension API messaging flow [extension API] messaging flow Jan 6, 2015
@paulirish
Copy link
Member Author

@paulirish paulirish commented Jan 6, 2015

covered in real docs thanks to thomas boyt's patch
https://codereview.chromium.org/632793002

@NeekSandhu
Copy link

@NeekSandhu NeekSandhu commented Oct 24, 2018

Thought I'd share a wrapper I made few months ago: crx-bridge

Comes with ES6 Promises and multiplexed long-lived connections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.