The Broadcast Channel API: Sending messages directly between browser tabs - Part 1
HTML-код
- Опубликовано: 6 июл 2024
- This simple, yet powerful API allows for direct communications between browser tabs. It opens the door for multi tab applications with an array of tabs across several screens talking and updating in real time. In this video you will learn the basics of the API, how to use it, and what to keep in mind.
This saved my life in 2022
thank you so much!!!
Beautiful topic covered. I have super high hopes for this channel.
what are some alternatives to this? for example send data request to update page on different clients on the same network?
I have added debug in onMessage method in tab1 and send multiple messages from other tab but onMessage of tab1 called only once. Does broadcast channel discards other message?
Can it work even on different browsers
It works in all modern browsers, but you can't send messages between different browsers. For that you need WebRTC
0
1