UNPKG

@churchapps/apphelper

Version:

Library of helper functions for React and NextJS ChurchApps

25 lines 1.06 kB
import { SocketActionHandlerInterface, SocketPayloadInterface } from "@churchapps/helpers"; export declare class SocketHelper { static socket: WebSocket; static socketId: string; static actionHandlers: SocketActionHandlerInterface[]; private static personIdChurchId; private static isCleanedUp; static setPersonChurch: (pc: { personId: string; churchId: string; }) => void; static createAlertConnection: () => void; static init: () => Promise<void>; static addHandler: (action: string, id: string, handleMessage: (data: any) => void) => void; static removeHandler: (id: string) => void; static removeHandlersByAction: (action: string) => void; static clearAllHandlers: () => void; static handleMessage: (payload: SocketPayloadInterface) => void; static cleanup: () => void; static disconnect: () => void; static isConnected: () => boolean; static getConnectionState: () => string; static setupGlobalCleanup: () => () => void; } //# sourceMappingURL=SocketHelper.d.ts.map