@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
11 lines • 367 B
JavaScript
import { useChatContext } from "../../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 } = useChatContext();
return { socket, connected };
}
export default useChatSocket;
//# sourceMappingURL=useChatSocket.js.map