Type alias MockRTCEventData
MockRTCEventData: { data-channel-closed: { channelId: number; eventTimestamp: number; peerId: string; sessionId: string; timingEvents: TimingEvents; }; data-channel-message-received: { channelId: number; content: Buffer; direction: "received"; eventTimestamp: number; isBinary: boolean; peerId: string; sessionId: string; timingEvents: TimingEvents; }; data-channel-message-sent: { channelId: number; content: Buffer; direction: "sent"; eventTimestamp: number; isBinary: boolean; peerId: string; sessionId: string; timingEvents: TimingEvents; }; data-channel-opened: { channelId: number; channelLabel: string; channelProtocol: string; eventTimestamp: number; peerId: string; sessionId: string; timingEvents: TimingEvents; }; external-peer-attached: { externalConnection: { localSessionDescription: MockRTCSessionDescription; peerId: string; remoteSessionDescription: MockRTCSessionDescription; selectedLocalCandidate: SelectedRTCCandidate; selectedRemoteCandidate: SelectedRTCCandidate; sessionId: string; }; peerId: string; sessionId: string; timingEvents: TimingEvents; }; media-track-closed: { eventTimestamp: number; peerId: string; sessionId: string; timingEvents: TimingEvents; trackMid: string; }; media-track-opened: { eventTimestamp: number; peerId: string; sessionId: string; timingEvents: TimingEvents; trackDirection: string; trackMid: string; trackType: string; }; media-track-stats: { eventTimestamp: number; peerId: string; sessionId: string; timingEvents: TimingEvents; totalBytesReceived: number; totalBytesSent: number; trackMid: string; }; peer-connected: { localSessionDescription: MockRTCSessionDescription; metadata: ConnectionMetadata; peerId: string; remoteSessionDescription: MockRTCSessionDescription; selectedLocalCandidate: SelectedRTCCandidate; selectedRemoteCandidate: SelectedRTCCandidate; sessionId: string; timingEvents: TimingEvents; }; peer-disconnected: { peerId: string; sessionId: string; timingEvents: TimingEvents; }; }
Type declaration
-
data-channel-closed: {
channelId: number;
eventTimestamp: number;
peerId: string;
sessionId: string;
timingEvents: TimingEvents;
}
-
channelId: number
-
eventTimestamp: number
-
peerId: string
-
sessionId: string
-
-
data-channel-message-received: {
channelId: number;
content: Buffer;
direction: "received";
eventTimestamp: number;
isBinary: boolean;
peerId: string;
sessionId: string;
timingEvents: TimingEvents;
}
-
channelId: number
-
content: Buffer
-
direction: "received"
-
eventTimestamp: number
-
isBinary: boolean
-
peerId: string
-
sessionId: string
-
-
data-channel-message-sent: {
channelId: number;
content: Buffer;
direction: "sent";
eventTimestamp: number;
isBinary: boolean;
peerId: string;
sessionId: string;
timingEvents: TimingEvents;
}
-
channelId: number
-
content: Buffer
-
direction: "sent"
-
eventTimestamp: number
-
isBinary: boolean
-
peerId: string
-
sessionId: string
-
-
data-channel-opened: {
channelId: number;
channelLabel: string;
channelProtocol: string;
eventTimestamp: number;
peerId: string;
sessionId: string;
timingEvents: TimingEvents;
}
-
channelId: number
-
channelLabel: string
-
channelProtocol: string
-
eventTimestamp: number
-
peerId: string
-
sessionId: string
-
-
external-peer-attached: {
externalConnection: {
localSessionDescription: MockRTCSessionDescription;
peerId: string;
remoteSessionDescription: MockRTCSessionDescription;
selectedLocalCandidate: SelectedRTCCandidate;
selectedRemoteCandidate: SelectedRTCCandidate;
sessionId: string;
};
peerId: string;
sessionId: string;
timingEvents: TimingEvents;
}
-
-
-
peerId: string
-
-
-
-
sessionId: string
-
peerId: string
-
sessionId: string
-
-
media-track-closed: {
eventTimestamp: number;
peerId: string;
sessionId: string;
timingEvents: TimingEvents;
trackMid: string;
}
-
eventTimestamp: number
-
peerId: string
-
sessionId: string
-
-
trackMid: string
-
media-track-opened: {
eventTimestamp: number;
peerId: string;
sessionId: string;
timingEvents: TimingEvents;
trackDirection: string;
trackMid: string;
trackType: string;
}
-
eventTimestamp: number
-
peerId: string
-
sessionId: string
-
-
trackDirection: string
-
trackMid: string
-
trackType: string
-
media-track-stats: {
eventTimestamp: number;
peerId: string;
sessionId: string;
timingEvents: TimingEvents;
totalBytesReceived: number;
totalBytesSent: number;
trackMid: string;
}
-
eventTimestamp: number
-
peerId: string
-
sessionId: string
-
-
totalBytesReceived: number
-
totalBytesSent: number
-
trackMid: string
-
-
-
-
peerId: string
-
-
-
-
sessionId: string
-
-
peer-disconnected: {
peerId: string;
sessionId: string;
timingEvents: TimingEvents;
}
-
peerId: string
-
sessionId: string
-