Update README.md
This commit is contained in:
parent
7f4d4286b9
commit
84fe55f342
16
README.md
16
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://<your_ip_or_localhost>: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.
|
||||
|
||||
12
src/index.js
12
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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user