Signature
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
event | EventName | The name of the event to listen for. | Yes |
callback | EventCallback<T> | The callback function to invoke when the event is emitted. | Yes |
Returns
this — the client instance, allowing method chaining.