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.

Комментарии • 9

  • @johnadepelumi93
    @johnadepelumi93 Год назад

    This saved my life in 2022

  • @asaintdonkey
    @asaintdonkey 2 месяца назад

    thank you so much!!!

  • @FauzulChowdhury
    @FauzulChowdhury 4 года назад +1

    Beautiful topic covered. I have super high hopes for this channel.

  • @kapkanfps3694
    @kapkanfps3694 Год назад

    what are some alternatives to this? for example send data request to update page on different clients on the same network?

  • @pavankumarn.r.9152
    @pavankumarn.r.9152 2 года назад

    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?

  • @2coding
    @2coding Год назад

    Can it work even on different browsers

    • @curiousprogramming
      @curiousprogramming  Год назад

      It works in all modern browsers, but you can't send messages between different browsers. For that you need WebRTC

  • @hms2127
    @hms2127 3 года назад +1

    0