paullouisageneau / datachannel-wasm

C++ WebRTC Data Channels and WebSockets for WebAssembly in browsers
MIT License
148 stars 25 forks source link

Nodejs support #43

Open temaivanoff opened 1 year ago

temaivanoff commented 1 year ago

Hi, this wasm lib work to Nodejs ? Nodejs not support native webrtc. I can extend functionality with this library for nodejs ?

paullouisageneau commented 1 year ago

No, this is just a wrapper that exposes the existing WebRTC JS API to C++ wasm programs, it needs the WebRTC implementation to be there already.

You might be interested in node-datachannel which adds WebRTC support to node.js.

jimmywarting commented 11 months ago

but NodeJS has globalThis.WebAssembly. dose it not work?

paullouisageneau commented 11 months ago

but NodeJS has globalThis.WebAssembly. dose it not work?

What do you mean? This is a C++ wrapper for the existing WebRTC JavaScript API (which Node.js does not support natively), it does not provide the implementation by itself.