Skip to content

Commit

Permalink
isomorphic-wrtc/node: use node-datachannel
Browse files Browse the repository at this point in the history
Closes: #633
  • Loading branch information
tharvik committed Mar 25, 2024
1 parent 6b2fea1 commit 76b1172
Show file tree
Hide file tree
Showing 4 changed files with 4,648 additions and 2,580 deletions.
2 changes: 1 addition & 1 deletion isomorphic-wrtc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Allow to load a different WebRTC implementation depending on the platform.

* on node, load @koush/wrtc, a C++ plugin
* on node, load node-datachannel, a C++ plugin
* in browser, simply exposes the available WebRTC implementation

It allows to simply `import wrct from 'isomorphic-wrtc'` and get the same coding experience.
Expand Down
2 changes: 1 addition & 1 deletion isomorphic-wrtc/node.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";

module.exports = require("@koush/wrtc");
module.exports = require("node-datachannel/polyfill");
2 changes: 1 addition & 1 deletion isomorphic-wrtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"test": ": nothing"
},
"peerDependencies": {
"@koush/wrtc": "*"
"node-datachannel": "*"
}
}
Loading

0 comments on commit 76b1172

Please sign in to comment.