How about having a websocket connection in our event pages? It's clearly against the idea behind event pages.
I was hoping to use only one websocket connection in a background page which will be open all the time and handle server-side requests. I guess you know better than me what websocket brings to the table in terms of performance and being bi-directional.
So what is your advice in such a use case? If I have to underline the use case's most important part, I need "only one websocket connection for the extension that is always open".
I am not an expert like you guys but maybe we need a new API (let's call it websocketRequest API) which provides a websocket connection for extension itself that is always open without a background page. We can define it in the manifest file and also chrome may handle reopening-reconnection stuff.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/gVcje7fU6j4J.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
You can use push messages (either chrome.gcm or the Push API) to wake a service worker. Once awake, you can use HTTP requests or a websocket connection to send updates to your server while the service worker is alive. If you have UI injected into a web page or on a dedicated extension page, you can open a websocket connection from that context. If you go this route, you may also want to consider automatically terminating the websocket connection when the current tab loses focus and reconnecting form the newly focused page.Simeon - @dotprotoChrome Extensions DevRel
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAFY0HLNxk-7FsbfrOs9WFu_M7Wk7GvFCpPqNX3aGZU_-GGT%2BUw%40mail.gmail.com.
You can use push messages (either chrome.gcm or the Push API) to wake a service worker.