Search code examples
service-workerserver-sent-events

Does service workers support server sent events?


Can someone tell me if service workers (https://developers.google.com/web/fundamentals/primers/service-workers/) support server sent events (SSE)?


Solution

  • As per the service worker specification's issue tracker, service workers should be able to intercept EventSource.

    That being said, I've never seen an example of a service worker that did anything meaningful with server-sent events.