Core
EventStreamEndpoint
Operation returned by defineEventStream.
@defjs/core · Type
Signature
type EventStreamEndpoint< Args extends unknown[], Event, TError extends AnyStruct | undefined = undefined, > = ( client: Client, ...args: Args ) => Promise<StreamAwaitResult<Event, TError>>;
The first argument is a Client. Further arguments are the input only. Calling it opens the stream and returns the existing error-first tuple.
Parameters
Prop
Type
client Client...args? Args