datachannel-wasm icon indicating copy to clipboard operation
datachannel-wasm copied to clipboard

Nodejs support

Open temaivanoff opened this issue 10 months ago • 3 comments

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

temaivanoff avatar Sep 03 '23 07:09 temaivanoff

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.

paullouisageneau avatar Sep 03 '23 13:09 paullouisageneau

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

jimmywarting avatar Sep 15 '23 21:09 jimmywarting

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.

paullouisageneau avatar Sep 16 '23 00:09 paullouisageneau