If you want to send messages between two windows, two tabs, or a page and a service worker, and you want those messages to only be accessible between two end points then ChannelMessaging is what you want.
Code from video: https://gist.github.com/prof3ssorSt3v...
Watch video Sending Messages with the ChannelMessaging API online without registration, duration hours minute second in high quality. This video was added by user Steve Griffith - Prof3ssorSt3v3 02 February 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,123 once and liked it 94 people.