Skip to main content

publish-correlation

Import the Client and Command:

import { Client, Command } from 'amps';

Constructing the command:

const subCmd = new Command('publish').topic(topic).data(data).correlationId(cross_ref);

The command can now be used in execute.