mirror of
https://api.glitch.com/git/yaswvc
synced 2026-01-12 06:38:12 +00:00
14 lines
276 B
JavaScript
14 lines
276 B
JavaScript
// client-side js, loaded by index.html
|
|
// run by the browser each time the page is loaded
|
|
|
|
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");
|
|
|