Skip to main content

processStarted

plugin.chat.processStarted(onStopClicked?: Function): ProcessControl | ProcessControlWithCleanup

Notifies the server that a process has started and sets up a listener for stopProcessClicked events.

Parameters

ParameterTypeRequiredDescription
onStopClickedFunctionNoCallback function to handle stop process events.

Returns

ProcessControl | ProcessControlWithCleanup — An object containing a stopProcess method.

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.chat.processStarted();
console.log(result);