Skip to content
#

service-worker

Here are 1,450 public repositories matching this topic...

workbox
StephanBijzitter
StephanBijzitter commented Mar 7, 2021

Library Affected:
workbox-window

Browser & Platform:
All browsers that support service workers and message channels

Issue or Feature Request Description:
When sending a message from the service worker to all clients (in the case of testing, only one client), the client does not receive the message port with which to respond. This happens when adding the message event liste

msw
kettanaito
kettanaito commented Apr 2, 2021

What

A new ctx.forward utility may be added to forward the currently captured request to its original destination (bypass).

Why

  • See #655

Currently bypassing is done via implicit/explicit return in the resolver. This is not intuitive and deterministic action, which also makes it hard to distinguish when the user forgot to return a mocked response, and when they meant to b

Improve this page

Add a description, image, and links to the service-worker topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the service-worker topic, visit your repo's landing page and select "manage topics."

Learn more