콘텐츠로 이동

WebRTCState

이 콘텐츠는 아직 번역되지 않았습니다.

type WebRTCState =
| {
callId: string | undefined;
dataChannel: undefined;
peerConnection: undefined;
status: "disconnected";
}
| {
callId: string | undefined;
dataChannel: RTCDataChannel;
peerConnection: RTCPeerConnection;
status: "connecting";
}
| {
callId: string | undefined;
dataChannel: RTCDataChannel;
peerConnection: RTCPeerConnection;
status: "connected";
};

The connection state of the WebRTC connection.