@whop/react
Version:
React SDK for building embedded apps on Whop
10 lines (9 loc) • 433 B
TypeScript
import type { SendableWebsocketMessage } from "@whop/api";
/**
* A hook that allows you to send a message to the websocket.
*
* When a message is sent before the websocket is connected it is added to a queue and sent once
* the connection is established
* @returns A function that allows you to send a message to the websocket.
*/
export declare function useSendWebsocketMessage(): (message: SendableWebsocketMessage) => void;