In my service worker I would to identify the exact window instance that triggered an event. For example, the two events I am particularly interested in are message