Skip to main content

Stop

The stop action is used to permanently close a WebSocket streaming connection in the Piopiy platform. This action is ideal when you need to end all ongoing real-time media operations or call flows associated with a particular session.

To use PCMO, you need to create an instance of the StreamAction class and define the actions you want to perform. The stop() method can be used to remove all defined actions from the current session before executing any new actions.

const { StreamAction } = require("piopiy");

const stream = new StreamAction();

stream.stop()