temit > TemitClient > requester
TemitClient.requester() method
Creates a requester that can be used to request data from endpoints.
Signature:
requester<Arg = unknown, Return = unknown>(event: string, opts?: RequesterOptions): Requester<Arg, Return>;
Parameters
Parameter | Type | Description |
---|---|---|
event | string | The event name to request data from. |
opts | RequesterOptions | Optional options block for specifying requester behaviour. |
Returns:
Requester<Arg, Return>
A new requester.