Skip to main content

publish-explicitkey

Import the Client and Command:

import { Client, Command } from 'amps';

Constructing the command:

const subCmd = new Command('publish').topic(topic).data(data).sowKey(key);

The command can now be used in execute.