I am working on a Chrome extension and about to implement some message passing between my background page and the content script, it will require about 3 messages (content -> background -> content -> background) which all occur in a synchronized order.
I'm not sure what message passing API i should use for this since i don't really understand the difference between the Port API and the normal
chrome.runtime API. is there something i can't do with the
runtime.sendmessage that i can do with the
Port.postMessage? any major differences that might make me choose one over the other?