aljanabim / simple_webrtc_nodejs_client Goto Github PK
View Code? Open in Web Editor NEWA WebRTC Client in Node.js using node-webrtc with some useful examples.
License: MIT License
A WebRTC Client in Node.js using node-webrtc with some useful examples.
License: MIT License
In terminal chat app example, after peers connect via the signaling server, the first chat message cannot be sent to any peers. After throwing the first chat message away, chat app proceeds to function as expected.
Doesn't look to be platform-specific, but rather a missing tarball...nonetheless:
MacBook Pro w/M2 Pro
MacOS Ventura 13.4
% yarn install
yarn install v1.22.19
[1/5] ๐ Validating package.json...
[2/5] ๐ Resolving packages...
[3/5] ๐ Fetching packages...
[4/5] ๐ Linking dependencies...
warning "[email protected]" is missing a bundled dependency "node-pre-gyp". This should be reported to the package maintainer.
[5/5] ๐จ Building fresh packages...
[1/2] โข wrtc
error /Users/redacted/Dev/Apps/WebRTCDemo/webrtc_nodejs_client/node_modules/wrtc: Command failed.
Exit code: 1
Command: node scripts/download-prebuilt.js
Arguments:
Directory: /Users/redacted/Dev/Apps/WebRTCDemo/webrtc_nodejs_client/node_modules/wrtc
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | arm64
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp info check checked for "/Users/redacted/Dev/Apps/WebRTCDemo/webrtc_nodejs_client/node_modules/wrtc/build/Release/wrtc.node" (not found)
node-pre-gyp http GET https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
node-pre-gyp http 404 https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
node-pre-gyp ERR! stack at PassThrough. (/Users/redacted/Dev/Apps/WebRTCDemo/webrtc_nodejs_client/node_modules/node-pre-gyp/lib/install.js:149:27)
node-pre-gyp ERR! stack at PassThrough.emit (node:events:523:35)
node-pre-gyp ERR! stack at ClientRequest. (/Users/redacted/Dev/Apps/WebRTCDemo/webrtc_nodejs_client/node_modules/needle/lib/needle.js:508:9)
node-pre-gyp ERR! stack at Object.onceWrapper (node:events:626:26)
node-pre-gyp ERR! stack at ClientRequest.emit (node:events:511:28)
node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:693:27)
node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
node-pre-gyp ERR! stack at TLSSocket.socketOnData (node:_http_client:535:22)
node-pre-gyp ERR! stack at TLSSocket.emit (node:events:511:28)
node-pre-gyp ERR! stack at addChunk (node:internal/streams/readable:332:12)
node-pre-gyp ERR! System Darwin 22.5.0
node-pre-gyp ERR! command "/opt/homebrew/Cellar/node/20.3.0/bin/node" "/Users/redacted/Dev/Apps/WebRTCDemo/webrtc_nodejs_client/node_modules/wrtc/node_modules/.bin/node-pre-gyp" "install"
node-pre-gyp ERR! cwd /Users/redacted/Dev/Apps/WebRTCDemo/webrtc_nodejs_client/node_modules/wrtc
node-pre-gyp ERR! node -v v20.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
404 status code downloading tarball https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.