I'm trying to use this package in my node server.
Unfortunately the package fails to run, since it depends on traceable peer connection,
and traceablepeerconnection uses window.
Do you have any solution for this manner.
can I use this without a browser?
this.peerconnection = new window.RTCPeerConnection(config, constraints);
^
ReferenceError: window is not defined
at new TraceablePeerConnection (/intermidiate/node_modules/rtcpeerconnection/node_modules/traceablepeerconnection/index.js:35:31)
at new PeerConnection (/home/tal/Code/WebstormProjects/intermidiate/node_modules/rtcpeerconnection/rtcpeerconnection.js:115:15)
at makeOffer (/intermidiate/public/serverless-webrtc-create/serverless-webrtc.js:79:8)
at Object.<anonymous> (/intermidiate/public/serverless-webrtc-create/serverless-webrtc.js:130:1)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
Hi,
I'm trying to use this package in my node server. Unfortunately the package fails to run, since it depends on traceable peer connection, and traceablepeerconnection uses window.
Do you have any solution for this manner.
can I use this without a browser?