import { RTCIceCandidateJSON , RTCSessionDescription , } from "../../../packages/werift/webrtc/src" ; import { Context } from "./context/context" ; export const handleCreate = async ( { roomManager } ) => { return roomManager . create ( ) ; } ; export const handleJoin = async ( { roomManager } , name ) => { return roomManager . join ( name ) ; } ; export const handleAnswer = async ( { roomManager } , name , peerId , answer ) => { return roomManager . answer ( name , peerId , answer ) ; } ; export const handleCandidate = async ( { roomManager } , name , peerId , candidate ) => { return roomManager . candidate ( name , peerId , candidate ) ; } ;