@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
12 lines (11 loc) • 378 B
TypeScript
import type { ChatContextValue } from "../../context/chat-context";
export interface UseChatSocketValues {
socket: ChatContextValue["socket"];
connected: boolean;
}
/**
* Access the shared Socket.io socket instance and its connection state.
* Must be used inside a ChatProvider.
*/
declare function useChatSocket(): UseChatSocketValues;
export default useChatSocket;