Skip to content

DisconnectParticipant

Source: src/AWS/IVSRealtime/DisconnectParticipant.ts

Forcibly disconnect a participant from the bound stage — the moderation call made from a deployed Lambda or Task. If the participant is publishing via an ingest configuration, its stageArn attachment is also cleared.

// init
const disconnectParticipant = yield* IVSRealtime.DisconnectParticipant(stage);
// runtime
yield* disconnectParticipant({
participantId: "abcDEF123",
reason: "moderated",
});