muaz-khan / WebRTC-Scalable-Broadcast

This module simply initializes socket.io and configures it in a way that single broadcast can be relayed over unlimited users without any bandwidth/CPU usage issues. Everything happens peer-to-peer!
https://rtcmulticonnection.herokuapp.com/demos/Scalable-Broadcast.html
532 stars 142 forks source link

error in server.js at line 12 #2

Open rubo77 opened 9 years ago

rubo77 commented 9 years ago

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`.
rubo77 commented 9 years ago

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 )

rubo77 commented 9 years ago

2.

Line 12 should be

    fs.exists(filename, function (exists) {