From 728f2d67d060b84c61f5118cfb1db297c062d162 Mon Sep 17 00:00:00 2001 From: Riley Smith Date: Thu, 27 Jan 2022 22:48:21 -0800 Subject: [PATCH] feat(ws): barebones SetPlayhead event --- backend/.idea/workspace.xml | 13 ++-- backend/cmd/watchtogether/build.sh | 12 ++++ backend/cmd/watchtogether/main.go | 8 ++- backend/internal/ws/handlers.go | 27 +++++++-- backend/internal/ws/hub.go | 4 +- backend/internal/ws/message.go | 4 +- frontend/src/components/Container.tsx | 20 +++--- frontend/src/components/Player.tsx | 81 ++++++++++++++++++++++++- frontend/src/interfaces/Identity.ts | 2 + frontend/src/interfaces/SocketEvents.ts | 5 ++ frontend/src/pages/player.tsx | 17 ++++-- 11 files changed, 162 insertions(+), 31 deletions(-) create mode 100755 backend/cmd/watchtogether/build.sh create mode 100644 frontend/src/interfaces/SocketEvents.ts diff --git a/backend/.idea/workspace.xml b/backend/.idea/workspace.xml index dd904f3..ab20c62 100644 --- a/backend/.idea/workspace.xml +++ b/backend/.idea/workspace.xml @@ -5,14 +5,17 @@ - + + + - - + + + + + - -