MDN/Get involved/Events/HackOnMDN/Project: Service Workers: Difference between revisions

MessagePort API note added (landed in Firefox 41)
(Updated the QuickStart Reference)
(MessagePort API note added (landed in Firefox 41))
 
Line 148: Line 148:


* NOTE Chrome's Service Worker communication samples ([https://github.com/GoogleChrome/samples/tree/gh-pages/service-worker/post-message) https://github.com/GoogleChrome/samples/tree/gh-pages/service-worker/post-message)] recommend using the MessagePort API for passing messages between the SW/page.
* NOTE Chrome's Service Worker communication samples ([https://github.com/GoogleChrome/samples/tree/gh-pages/service-worker/post-message) https://github.com/GoogleChrome/samples/tree/gh-pages/service-worker/post-message)] recommend using the MessagePort API for passing messages between the SW/page.
** Firefox does not really implement the API {{bug|952139}} - further info is required on implementation status or on how could this be overcome.
** <s>Firefox does not really implement the API {{bug|952139}} - further info is required on implementation status or on how could this be overcome.</s><br> MessagePort API has landed [https://bugzilla.mozilla.org/show_bug.cgi?id=911972 in Firefox 41]
** As of the time of writing, even Chrome does not imlement the latest spec in this regard. More info on this on [https://github.com/slightlyoff/ServiceWorker/issues/662 GitHub] and linked [https://stackoverflow.com/questions/29230470/equivalent-of-sharedworker-port-in-serviceworker StackOverflow post].
** As of the time of writing, even Chrome does not imlement the latest spec in this regard. More info on this on [https://github.com/slightlyoff/ServiceWorker/issues/662 GitHub] and linked [https://stackoverflow.com/questions/29230470/equivalent-of-sharedworker-port-in-serviceworker StackOverflow post].


Confirmed users
61

edits