Skip to main content

subscribe-queue-backlog

Import the Client and Command:

import { Command, Client } from 'amps';

Constructing the command:

const subCmd = new Command('subscribe').topic(topic).options('max_backlog=10000');

The command can now be used in execute.