41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Document</title>
|
|
</head>
|
|
<body>
|
|
<h2><pre id="log"></pre></h2>
|
|
<h1 id="message"></h1>
|
|
<script src="http://localhost:7707/script"></script>
|
|
<script>
|
|
async function main(){
|
|
const wsjs = new MWSE({
|
|
endpoint: "ws://localhost:7707"
|
|
});
|
|
wsjs.scope(async ()=>{
|
|
let me = wsjs.peer('me');
|
|
me.disablePairAuth();
|
|
|
|
let room = wsjs.datastore({
|
|
type: 'temp',
|
|
sha256: 'f1290186a5d0b1ceab27f4e77c0c5d68'
|
|
});
|
|
});
|
|
};
|
|
|
|
function gg()
|
|
{
|
|
log.innerHTML = `${gg.w} packet writed\n${gg.r} packet recaived`
|
|
}
|
|
gg.w = 0;
|
|
gg.r = 0;
|
|
/*setInterval(()=>{
|
|
window.location.reload();
|
|
}, 30000)*/
|
|
main();
|
|
</script>
|
|
</body>
|
|
</html> |