temit > TemitClient > endpoint
TemitClient.endpoint() method
Creates an endpoint that can be used to respond to requesters.
Signature:
endpoint<Arg = unknown, Return = any>(event: string, handler: EndpointHandler<Arg, Unpack<Return>>): Endpoint<Arg, Return>;
Parameters
Parameter | Type | Description |
---|---|---|
event | string | |
handler | EndpointHandler<Arg, Unpack<Return>> |
Returns:
Endpoint<Arg, Return>