UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

13 lines 468 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chat_context_1 = require("../../context/chat-context"); /** * Access the shared Socket.io socket instance and its connection state. * Must be used inside a ChatProvider. */ function useChatSocket() { const { socket, connected } = (0, chat_context_1.useChatContext)(); return { socket, connected }; } exports.default = useChatSocket; //# sourceMappingURL=useChatSocket.js.map