subscribe-bookmark-rate-replace
Import the Client and Command:
import { Command, Client } from 'amps';
Constructing the subscribe command:
const subCmd = new Command('subscribe').topic(topic).subId(subId).bookmark(Client.Bookmarks.MOST_RECENT).options('rate=1000');
The command can now be used in execute.
Construct the replace command:
const subCmd = new Command('subscribe').topic(topic).subId(subId).options('rate=100,replace');
The command can now be used in execute to update the previous subscriptions rate option.