WebRTC-Scalable-Broadcast
WebRTC-Scalable-Broadcast copied to clipboard
error in server.js at line 12
The code doesn't work. It stops at line 12 already: https://github.com/muaz-khan/WebRTC-Scalable-Broadcast/blob/master/server.js#L12
1.
On localhost:8888
I get:
Error: ENOENT, open '/var/www//index.html'
2.
On the console I get the error:
path.exists is now called `fs.exists`.
Workaround for 1.:
I can call the site with the url
http://localhost:8888/node_modules/webrtc-scalable-broadcast/index.html
because localhost:8888 resolves in /var/www/
and I installed the tool with
cd /var/www/
npm install webrtc-scalable-broadcast
( fixed by #4 )
2.
Line 12 should be
fs.exists(filename, function (exists) {