@selfcommunity/react-core
Version:
React Core Components useful for integrating UI Community components (react-ui).
12 lines (11 loc) • 321 B
TypeScript
/// <reference types="react" />
import { WSClientType } from '@selfcommunity/utils';
/**
:::info
This custom hook is used to init web socket.
:::
*/
export default function useSCWebSocket(): {
wsInstance: WSClientType;
setWsInstance: import("react").Dispatch<import("react").SetStateAction<WSClientType>>;
};