aboutsummaryrefslogtreecommitdiff
path: root/test-client/main.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-18 13:31:59 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:21:22 +0200
commit7954d6dfc42e14ecdaebbe14191c22b071819444 (patch)
tree4e4621a00cb4a377624d5aa8a2b1dac423564ed5 /test-client/main.ts
parent3d870a714348defc40cd519c00b43c87b1be6480 (diff)
downloadhurrycurry-7954d6dfc42e14ecdaebbe14191c22b071819444.tar
hurrycurry-7954d6dfc42e14ecdaebbe14191c22b071819444.tar.bz2
hurrycurry-7954d6dfc42e14ecdaebbe14191c22b071819444.tar.zst
rename joined to init
Diffstat (limited to 'test-client/main.ts')
-rw-r--r--test-client/main.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/main.ts b/test-client/main.ts
index 7b515752..e0cc9b3c 100644
--- a/test-client/main.ts
+++ b/test-client/main.ts
@@ -51,7 +51,7 @@ function send(p: PacketS) { ws.send(JSON.stringify(p)) }
function packet(p: PacketC) {
if (!["position", "set_active"].includes(p.type)) console.log(p);
switch (p.type) {
- case "joined":
+ case "init":
my_id = p.id
data = p.data
break;