NatsEvents

Nats events map for the Nats client. Key is the event name and value is the corresponding callback function.


type NatsEvents = {
    disconnect: DefaultCallback;
    reconnect: DefaultCallback;
    update: (data?: string | number | ServersChangedEvent) => any;
};