major changes, leaving it at that
This commit is contained in:
1 parent
8cb4c3556b
commit
b55251cfc5
16 files changed
+3280
-302
No files matched your search
@@ -17,6 +17,7 @@
|
||||
|
||||
ws.onmessage = (event) => log("recv: " + event.data);
|
||||
ws.onclose = (event) => log(`close ${event.code}`);
|
||||
ws.onerror = () => log("error");
|
||||
|
||||
document.getElementById("send").onclick = () => {
|
||||
ws.send(JSON.stringify({ type: "ECHO", text: "button " }));
|
||||
|
||||
Reference in new issue
Block a user