Skip to main content

subscribe-bookmark-rate-gap

Import the Client and Command:

import { Command, Client } from 'amps';

Constructing the command:

const subCmd = new Command('subscribe').topic(topic).subId(subId).bookmark(Client.Bookmarks.MOST_RECENT).options('rate=1x,rate_max_gap=1s');

The command can now be used in execute.