UNPKG

@whop/react

Version:

React SDK for building embedded apps on Whop

8 lines (7 loc) 338 B
import type { proto } from "@whop/api"; /** * A hook that allows you to handle incoming websocket messages. * * Make sure to mount this hook in a component that is a child of the `WhopWebsocketProvider` */ export declare function useOnWebsocketMessage(callback: ((message: proto.common.AppMessage) => void) | undefined | null): void;