Sends a text message to subscribers of the topic.
ServerWebSocket.publishText method | Bun module | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/ServerWebSocket/publishTextMpublishText BuildDocsReferenceGuidesBlogDiscord /Bun/ServerWebSocket/publishTextMpublishText ServerWebSocket.publishTextpublishText(topic: string,data: string,compress?: boolean): number; @param topic @param data @param compress
Search the reference...
/
method
The topic name.
The data to send.
Should the data be compressed? If the client does not support compression, this is ignored.
ws.publish("chat", "Hello!");
ws.publish("chat", "Compress this.", true);
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →ServerWebSocket.publishText method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method bun.ServerWebSocket.publishText | Bun