evil scientist things

This commit is contained in:
nora 2023-03-04 23:28:22 +01:00
parent 1855296152
commit 57f95f95d3
2 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,24 @@
<!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>
<button onclick="startWs()">build me a compiler</button>
<script>
function startWs() {
console.log("starting ws");
const ws = new WebSocket("ws://localhost:3000/ws");
ws.addEventListener("open", () => {
ws.send("uwu!");
});
}
</script>
</body>
</html>