mirror of
https://github.com/pion/webrtc.git
synced 2025-10-04 14:53:05 +08:00
11 lines
270 B
JavaScript
11 lines
270 B
JavaScript
// This file adds RTCPeerConnection to the global context, making Node.js more
|
|
// closely match the browser API for WebRTC.
|
|
|
|
const wrtc = require('wrtc')
|
|
|
|
global.window = {
|
|
RTCPeerConnection: wrtc.RTCPeerConnection
|
|
}
|
|
|
|
global.RTCPeerConnection = wrtc.RTCPeerConnection
|