-
- Downloads
(ml5717) Added peer.js npm install
Showing
- .pre-commit-config.yaml 2 additions, 2 deletions.pre-commit-config.yaml
- README.md 35 additions, 1 deletionREADME.md
- package-lock.json 5023 additions, 0 deletionspackage-lock.json
- package.json 14 additions, 7 deletionspackage.json
- server.js 29 additions, 0 deletionsserver.js
- src/app.js 22 additions, 0 deletionssrc/app.js
- src/y-webrtc/LICENSE 21 additions, 0 deletionssrc/y-webrtc/LICENSE
- src/y-webrtc/index.js 57 additions, 0 deletionssrc/y-webrtc/index.js
package-lock.json
0 → 100644
This diff is collapsed.
... | ... | @@ -4,13 +4,20 @@ |
"description": "CRDT-based p2p Drawing Application", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"build": "webpack src/app.js -o public/js/app.js", | ||
"start": "http-server -c-1 -p 12345 public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://gitlab.doc.ic.ac.uk/sweng-group-15/drawing-app.git" | ||
"dependencies": { | ||
"http-server": "^0.11.1", | ||
"peer": "git+https://github.com/peers/peerjs-server.git", | ||
"peerjs": "^1.1.0", | ||
"y-array": "^10.1.4", | ||
"y-memory": "^8.0.9", | ||
"y-text": "^9.5.1", | ||
"yjs": "^12.3.3" | ||
}, | ||
"author": "sweng-group-15", | ||
"license": "MIT", | ||
"devDependencies": {} | ||
"devDependencies": { | ||
"webpack": "^4.41.0", | ||
"webpack-cli": "^3.3.9" | ||
} | ||
} |
server.js
0 → 100644
src/app.js
0 → 100644
src/y-webrtc/LICENSE
0 → 100644
src/y-webrtc/index.js
0 → 100644
-
@ml5717 Weren't we going to do it on the server first? :(
EDIT: Ah, nm. That's what
PeerServer
is.Edited by Nayeem Rahman -
@mnr17 You are partially correct. This code right now skips the “all messages through the server” phase - but purely as it doesn’t implement any actual data passing functionality of any kind yet and I wanted to see if this library can work (i.e. compile and give users a unique ID). My plan is to still add some p2p functionality using a central signalling server today, so we have something to work off when we try to add purely centralised communication (there is a XMPP extension for y-js).
Please register or sign in to comment