Methods
add
- add(stream, cfg): Promise<ConsumerInfo>
delete
- delete(stream, consumer): Promise<boolean>
Parameters
- stream: string
- consumer: string
Returns Promise<boolean>
info
- info(stream, consumer): Promise<ConsumerInfo>
Parameters
- stream: string
- consumer: string
pause
- pause(stream, name, until?): Promise<{
pause_until?: string;
paused: boolean;
}> Parameters
- stream: string
- name: string
Optional
until: Date
Returns Promise<{
pause_until?: string;
paused: boolean;
}>
resume
- resume(stream, name): Promise<{
pause_until?: string;
paused: boolean;
}> Parameters
- stream: string
- name: string
Returns Promise<{
pause_until?: string;
paused: boolean;
}>
update
- update(stream, durable, cfg): Promise<ConsumerInfo>
Adds a new consumer to the specified stream with the specified consumer options.