// WebRTC.js — placeholder. Full WebRTC implementation will be rewritten separately. // Provides the interface Peer.js depends on so the rest of the SDK loads cleanly. import MWSEEventTarget from './EventTarget.js'; export default class WebRTC extends MWSEEventTarget { constructor(_rtcConfig, _rtcServers) { super(); this.active = false; this.peer = null; this.connectionStatus = 'new'; this.iceStatus = 'new'; this.gatheringStatus = 'new'; this.signalingStatus = ''; this.channel = undefined; } connect() { console.warn('WebRTC: not yet implemented — replacement coming separately'); } sendStream(_stream, _name, _info) { console.warn('WebRTC.sendStream: not yet implemented'); } sendMessage(_data) { console.warn('WebRTC.sendMessage: not yet implemented'); } destroy() { this.active = false; this.emit('disconnected'); } // send is called internally by the signaling output path in the full implementation. send(_data) {} }