import { RTCIceCandidateJSON , RTCSessionDescription , } from "../../../werift/webrtc/src" ; import { Room } from "../domains/room" ; export class Endpoint { room = new Room ( ) ; async join ( ) { return this . room . join ( ) ; } async handleAnswer ( peerId , answer ) { return this . room . connection . handleAnswer ( peerId , answer ) ; } async handleCandidate ( peerId , candidate ) { return this . room . connection . handleCandidate ( peerId , candidate ) ; } }