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.
25 lines
497 B
JavaScript
25 lines
497 B
JavaScript
// Stub for @ipshipyard/node-datachannel
|
|
// Native WebRTC module not needed for Lux blockchain explorer
|
|
|
|
class PeerConnection {
|
|
close() {}
|
|
setLocalDescription() {}
|
|
setRemoteDescription() {}
|
|
addRemoteCandidate() {}
|
|
createDataChannel() {
|
|
return {};
|
|
}
|
|
onLocalDescription() {}
|
|
onLocalCandidate() {}
|
|
onStateChange() {}
|
|
onGatheringStateChange() {}
|
|
onDataChannel() {}
|
|
}
|
|
|
|
class IceUdpMuxListener {
|
|
close() {}
|
|
}
|
|
|
|
export { PeerConnection, IceUdpMuxListener };
|
|
export default {};
|