mirror of
https://api.glitch.com/git/yaswvc
synced 2026-01-12 05:28:10 +00:00
😺🏠 Checkpoint
./public/main.js:3115263/248
This commit is contained in:
parent
0a2198413f
commit
461dedf9dd
1 changed files with 8 additions and 1 deletions
|
|
@ -1,7 +1,14 @@
|
||||||
// client-side js, loaded by index.html
|
// client-side js, loaded by index.html
|
||||||
// run by the browser each time the page is loaded
|
// run by the browser each time the page is loaded
|
||||||
|
|
||||||
console.log(Peer);
|
let peer = new Peer();
|
||||||
|
peer.on('open', (id) => {
|
||||||
|
console.log('My peer ID is: ' + id);
|
||||||
|
});
|
||||||
|
|
||||||
|
peer.on('error', (error) => {
|
||||||
|
console.error(error);
|
||||||
|
});
|
||||||
|
|
||||||
console.log("hello world :o");
|
console.log("hello world :o");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue