TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

BroadcastChannel API – Communicating between tabs

7 点作者 mdibaiee大约 10 年前

1 comment

alexforster大约 10 年前
A first class API for cross-document communication is something that has been sorely needed for a long time. I've solved this problem in the past by treating LocalStorage as a page of shared memory and using it to create a publish/subscribe event system. I'm sure the same concept can be used to create a compatibility shim for this API.