From ef4e0b4ac2eb0bf5eeeaa69c8386030d7e338666 Mon Sep 17 00:00:00 2001 From: Riley Smith Date: Sun, 23 Jan 2022 01:22:21 -0800 Subject: [PATCH] ws works now --- backend/.idea/workspace.xml | 21 +- backend/internal/ws/handlers.go | 3 +- backend/internal/ws/message.go | 6 +- backend/internal/ws/structs.go | 5 +- frontend/package.json | 4 +- frontend/src/interfaces/IMessage.ts | 6 +- frontend/src/interfaces/IUser.ts | 3 +- frontend/src/pages/api/auth/[...nextauth].ts | 6 + frontend/src/pages/player.tsx | 62 ++++-- frontend/src/util/Handler.ts | 1 + frontend/src/util/Message.ts | 15 ++ frontend/src/util/MessageUtil.ts | 16 ++ frontend/src/util/websocket.ts | 0 frontend/tsconfig.json | 5 +- frontend/types/environment.d.ts | 1 + frontend/types/next-auth.d.ts | 10 + frontend/yarn.lock | 205 +++++++++---------- 17 files changed, 215 insertions(+), 154 deletions(-) create mode 100644 frontend/src/util/Handler.ts create mode 100644 frontend/src/util/Message.ts create mode 100644 frontend/src/util/MessageUtil.ts delete mode 100644 frontend/src/util/websocket.ts create mode 100644 frontend/types/next-auth.d.ts diff --git a/backend/.idea/workspace.xml b/backend/.idea/workspace.xml index 82b392b..4deff21 100644 --- a/backend/.idea/workspace.xml +++ b/backend/.idea/workspace.xml @@ -8,11 +8,12 @@ + + - + -