diff --git a/README.md b/README.md index 50eb2a6..2cd3cb4 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ From git source: git clone https://github.com/jeremija/peer-calls.git cd peer-calls npm install +npm run build npm start ``` @@ -28,10 +29,6 @@ On your other machine or mobile device open the url: ```bash http://:3000 -``` - -(Note: On Android you may have to select a notification on the pulldown menu to -connect if you are using Chrome) # Testing @@ -40,6 +37,17 @@ npm install npm test ``` +# Browser Support + +Tested on Firefox and Chrome, including mobile versions. + +Does not work on iOS 10, but should work on iOS 11 (untested). + +For more details, see here: + +- http://caniuse.com/#feat=rtcpeerconnection +- http://caniuse.com/#search=getUserMedia + # Contributing See [Contributing](CONTRIBUTING.md) section. diff --git a/src/index.js b/src/index.js index fb5f70e..cc96700 100644 --- a/src/index.js +++ b/src/index.js @@ -1,17 +1,11 @@ #!/usr/bin/env node 'use strict' if (!process.env.DEBUG) { - process.env.DEBUG = 'peer-calls:*' + process.env.DEBUG = 'peercalls' } const app = require('./server/app.js') -const os = require('os') +const debug = require('debug')('peercalls') let port = process.env.PORT || 3000 -let ifaces = os.networkInterfaces() - -app.http.listen(port, function () { - Object.keys(ifaces).forEach(ifname => - ifaces[ifname].forEach(iface => - console.log('listening on', iface.address, 'and port', port))) -}) +app.http.listen(port, () => debug('Listening on: %s', port))