Skip to content
PricingReleases

HookDbApi

Defined in: hooks.ts:94

appendEvent: (sessionId, type, data?, context?) => { created_at: string; event_id: string; } | null

Defined in: hooks.ts:103

string | null | undefined

string

DbFieldValue

EventContext | null

{ created_at: string; event_id: string; } | null


getPushSubscriptionCount: () => number

Defined in: hooks.ts:106

number


resolveProjectPath: (ref) => string | null

Defined in: hooks.ts:98

string | null | undefined

string | null


resolveProjectSlug: (ref) => string

Defined in: hooks.ts:97

string | null | undefined

string


sendPushToAll: (payload) => Promise<{ cleaned: number; failed: number; sent: number; }>

Defined in: hooks.ts:105

string

string

Record<string, unknown>

string

string

string

Promise<{ cleaned: number; failed: number; sent: number; }>

broadcast(channel, payload?): void

Defined in: hooks.ts:107

string

unknown

void


createSession(opts): Session | null

Defined in: hooks.ts:100

CreateSessionOpts

Session | null


getSession(id): Session | null

Defined in: hooks.ts:96

string

Session | null


getSettings(): Settings

Defined in: hooks.ts:95

Settings