BuildDocsReferenceGuidesBlogDiscordBunWebSocketHandlerdataBuildDocsReferenceGuidesBlogDiscordBunWebSocketHandlerdataWebSocketHandler.datadataTypeScript limitation (#26242)ReferenceDocsGuidesDiscordMerch StoreGitHubBlogRuntimePackage managerTest runnerBundlerPackage runnerBun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseWe're hiring →
property data | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Specify the type for the ServerWebSocket.data property on
connecting websocket clients. You can pass this value when you make a
call to Server.upgrade.
This pattern exists in Bun due to a [TypeScript limitation (#26242)](https://github.com/microsoft/TypeScript/issues/26242)