nickdesaulniers / node-rtc-peer-connection

[BROKEN/UNMAINTAINED] RTCPeerConnection for Node.js
Other
154 stars 17 forks source link

make main.js isomorphic #6

Closed nickdesaulniers closed 8 years ago

nickdesaulniers commented 8 years ago

The eventual goal is to be able to have main.js be isomorphic (run in the browser AND node). It currently works in the browser. It might be possible to simplify the code, and add some checks like:

if node
  require RTCPeerConnection