temit > TemitClient > listener
TemitClient.listener() method
Signature:
listener<Arg = unknown>(event: string, group: string, opts: ListenerOptions, handler: ListenerHandler<Arg>): Listener<Arg>;
Parameters
Parameter | Type | Description |
---|---|---|
event | string | |
group | string | |
opts | ListenerOptions | |
handler | ListenerHandler<Arg> |
Returns:
Listener<Arg>