Whop Realtime WebSocket
Version 1.0.0
AsyncAPI 2.6 description of Whop's **realtime WebSocket** surface, used by Whop apps for bidirectional realtime messaging (custom app messages plus chat / feed updates) between connected clients and Whop's servers. Scope / grounding notes: - Whop documents a WebSocket feature for apps at docs.whop.com/apps/features/websocket-guide. It is a **real, documented, bidirectional** transport, which is why it is modeled here as AsyncAPI. - The connection is **established and authenticated through Whop's SDK**, not by hand-connecting to a published raw `wss://` URL. In React the `WhopWebsocketProvider` from `@whop/react` opens the connection; other runtimes use `connectToWebsocket` from `@whop/api`. Whop does **not** publish a standalone raw `wss://` endpoint string for arbitrary clients, so the `servers.whopRealtime.url` below is a **modeled placeholder** (`realtime.whop.com`) that documents where the SDK connects, not a verbatim documented URL. Verify on reconciliation. - Clients send messages with `useBroadcastWebsocketMessage` (React) and receive them with `useOnWebsocketMessage`; a trusted server can broadcast with `whopApi.websockets.sendMessage`. Messages carry a `target` (for example `everyone`, an experience, or a custom channel). - Connection lifecycle is observable via `connect`, `disconnect`, and `connectionStatus` events on the websocket instance. This document models the message shapes and channels at a transport level; exact payload schemas are modeled from the documented SDK surface and should be verified against the live guide.
Channels
Messages
Servers
realtime.whop.com