channel messaging

阅读数:1344 发布时间:2016-06-25 17:26:05

作者:gsh 标签: 通道通信 html5 channel messaging

channel messaging通道通信

当我们谈论web通信的时候,实际上谈论的是两个略有不同的系统:跨文档通信(cross-document messaging)和通道通信(channel messaging)。通道通信也被称为”MessageChannel”. 伴随着server-sent事件以及web sockets, 跨文档通信和通道通信成为HTML5 通信接口“套件”中有用的一部分。

MessageChannel 接口

返回带有两个新的 MessageChannel 对象的新的 MessagePort 对象。

属性 类型 描述
port1 MessagePort 第一端口
port2 MessagePort 第二端口

相关文章推荐: