temit > TemitClient > endpoint
TemitClient.endpoint() method
Signature:
endpoint<Arg = unknown, Return = any>(event: string, opts: EndpointOptions, handler: EndpointHandler<Arg, Unpack<Return>>): Endpoint<Arg, Return>;
Parameters
Parameter | Type | Description |
---|---|---|
event | string | |
opts | EndpointOptions | |
handler | EndpointHandler<Arg, Unpack<Return>> |
Returns:
Endpoint<Arg, Return>