Docs
Node SDK

participants.getRuntimeOperation

Inspect the durable operation for removing a participant.

Import and client

TypeScript
import { RelayServer } from '@relayrtc/node'
 
const relay = new RelayServer({
  apiUrl: process.env.RELAYRTC_API_URL!,
  apiKey: process.env.RELAYRTC_SECRET_KEY!,
})

Requirements

A secret key with participants:read. The requested resource must belong to that key's project environment.

Parameters

OptionTypeDefault / requirementPurpose
roomIdstringRequiredID of a room in the key's environment.
participantIdstringRequiredID of a participant in this room.

Every method accepts RequestOptions as its final argument.

Example

TypeScript
const roomId = 'room_example'
const participantId = 'participant_example'
const result = await relay.participants.getRuntimeOperation(roomId, participantId)

Returns

Promise<RuntimeOperation>. Returns a runtime operation. 404 OPERATION_NOT_FOUND when no operation exists.

REST equivalent

GET /v1/rooms/{roomId}/participants/{participantId}/runtime-operation. Failures throw RelayApiError.