Skip to main content

sow-and-sub-filter

Import the Client and Command:

import { Client, Command } from 'amps'; 

Constructing the command:

const subCmd = new Command('sow_and_subscribe').topic(topic).filter('/id > 1');

The command can now be used in execute.