Skip to content

Commit 7944bdb

Browse files
config peerjs port
1 parent 26a2db7 commit 7944bdb

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# dependencies
2+
/node_modules
3+
package-lock.json

app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const { PeerServer } = require('peer');
2+
3+
const peerServer = PeerServer({port: 3001, path: '/'})

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "peerjs",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC",
12+
"dependencies": {
13+
"peer": "^0.6.1"
14+
}
15+
}

0 commit comments

Comments
 (0)