This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
class MessageChannel | globals module | Bun BuildDocsReferenceGuidesBlogDiscord/Globals/MessageChannelPport1Pport2 BuildDocsReferenceGuidesBlogDiscord /Globals/MessageChannelPport1Pport2 readonly port1: MessagePort readonly port2: MessagePort
Search the reference...
/
class
MessageChannelclass MessageChannelReturns the first MessagePort object.
Returns the second MessagePort object.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →class MessageChannel | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)