-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (26 loc) · 818 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>libp2p-websocket-websys use-after-free reproduction</title>
<script type="module">
import init, { connect } from "./pkg/libp2p_websocket_reproduction.js";
init()
async function run(addr) {
console.log("Connecting...");
await connect(addr);
console.log("Done");
}
async function connect_seed() {
run("/dns4/seed1.pos.nimiq-testnet.com/tcp/8443/wss")
}
document.getElementById("connect-seed").addEventListener("click", connect_seed);
</script>
</head>
<body>
<p>
<button id="connect-seed">Connect to Seed</button>
</p>
</body>
</html>