Hangup
The hangup action is used to terminate an ongoing call within a WebSocket connection in the Piopiy platform. This action will immediately end the call session, whether or not the call has been answered.
- Node.js
- Python
To end a call session in the PCMO platform, you can use the hangup()
method in the StreamAction
class. This method terminates the ongoing call without requiring any parameters.
const { StreamAction } = require("piopiy");
const stream = new StreamAction();
stream.hangup()
To end a call session in the PCMO platform, you can use the hangup()
method in the StreamAction
class. This method terminates the ongoing call without requiring any parameters.
from piopiy import StreamAction
stream = StreamAction()
stream.hangup()