All files / src/models/infrasctructure call-payload.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25                                                 
import { CallMethodName } from './call-method-name';
 
/**
 * Represents the standardized payload structure for WebRTC signaling messages.
 * This structure is used for all communication with the signaling server
 * to establish and manage peer-to-peer connections.
 */
export type CallPayload = {
    /**
     * The method name identifying the type of signaling action.
     * Determines how the rest of the payload will be interpreted.
     */
    a: CallMethodName;
 
    /**
     * The sender's public key, used for peer identification and message validation.
     */
    b: string;
 
    /**
     * The recipient's public key, indicating which peer should receive this message.
     */
    c: string;
};