Clients API and Window Messaging

preview_player
Показать описание
This tutorial covers how to use postMessage to send messages (data) between different tabs, even cross-domain tabs, and between service workers and tabs using the Clients API.

0:00 Introduction and Setup
2:20 Adding Listeners
4:20 Opening Tabs and sending Window Messages
7:45 Sending Messages to Service Workers
10:25 Receiving Messages in Service Workers
11:10 Client Id tracking
12:54 Sending Messages from Service Workers
14:23 Sending Messages to one Client
16:52 Sending Messages to multiple Clients
Рекомендации по теме
Комментарии
Автор

I'm very amazed by the in-depth knowledge you have on many of the complex topics like this. Thank you for sharing them with us.

sanjitselvan
Автор

You are professional. Thank you so so much.

YassinAlHassany
Автор

It was awesome explanation, thanks a lot

alirezafereydoni
Автор

Hello sir, ive just finished this playlist on service workers and it helped a lot on my understanding. May i know if you have a video or playlist even on implementing push notification in service worker? Thanks!

yaietc.
Автор

Hi in what scenarios in Real case scenearios I would like two tabs on the same browser on the same device for the same user to communicate with each other" ? What I could find was "Applications may need to maintain shared state or context between different tabs. For instance, in a web-based document editor, changes made in one tab should be reflected in other tabs to ensure consistency." Can you suggest any use case you might have worked on where the above is applicable

leolowe
Автор

Hello sir.
I have a question And I hope you help me to solve it.
First question is :-
I HAVE Table on database called product I want to know how many user's visit each product on my website. To make a selection on my website called most viewed.
The second question is:- how to make a limit to display products ber page and make multiple pages display the rest of products.

ghostavosd
Автор

What if I don't have access to another tab because I didn't open it..can a message be sent to a window I didn't open

abhimn