temit > TemitClient > emitter
TemitClient.emitter() method
Creates an emitter that can be used to push data to listeners.
Signature:
emitter<Arg = unknown>(event: string, opts?: EmitterOptions): Emitter<Arg>;
Parameters
Parameter | Type | Description |
---|---|---|
event | string | |
opts | EmitterOptions |
Returns:
Emitter<Arg>