mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
@libp2p/webrtc imports @ipshipyard/node-datachannel/polyfill which requires native C++ compilation. Stub provides ESM+CJS exports for both main and polyfill subpaths with no-op WebRTC classes. Also ignores pnpm-lock.yaml in cspell and copies stubs dir in Dockerfiles.
15 lines
338 B
JavaScript
15 lines
338 B
JavaScript
// Stub for @ipshipyard/node-datachannel (CJS)
|
|
class PeerConnection {
|
|
constructor() {}
|
|
close() {}
|
|
setLocalDescription() {}
|
|
setRemoteDescription() {}
|
|
addRemoteCandidate() {}
|
|
createDataChannel() { return {}; }
|
|
}
|
|
class IceUdpMuxListener {
|
|
constructor() {}
|
|
close() {}
|
|
}
|
|
module.exports = { PeerConnection, IceUdpMuxListener };
|