Skip to main content

subscribe-bookmark-pause

Import the Client and Command:

import { Command, Client } from 'amps';

Constructing the command:

const subCmd = new Command('subscribe').topic(topic).subId(subId).bookmark(pausePoint).options('pause');

The command can now be used in execute.