Skip to content

Type Alias: LiveEventBus

LiveEventBus = Readonly<{ connection: (procedure, args?) => LiveConnectionHandle; delete: (type, id, options?) => void; emit: (type, id, options?) => void; listen?: (type, id, handler, options?) => () => void; listenConnection?: (target, handler, options?) => () => void; subscribe: (type, id, options?) => AsyncIterable<readonly [LiveSourceEvent]>; subscribeConnection: (target, options?) => AsyncIterable<readonly [LiveConnectionSourceEvent]>; update: (type, id, options?) => void; }>

Defined in: packages/fate/src/server/live.ts:72

Released under the MIT License