feat: implement multi-user live workout rooms and real-time sync (#1023)#1033
Merged
Conversation
|
@knoxiboy is attempting to deploy a commit to the somiljain2024-4175's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
@Somil450 Please review and merge the pr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Related Issue
Fixes #1023
📝 Description
This PR implements Multi-User Live Workout Rooms, real-time stat synchronization via Socket.IO, competitive modes, activity leaderboards, WebRTC voice status indicator, and spectator mode.
🔹 What has been changed?
MultiplayerRoomScreen.tsxas a premium dashboard lobby allowing room creation/joining, mode selection, live camera grids, and real-time multiplayer workout tracking.room:create,room:join,room:update-stats,room:start-game) toserver/src/socket/handlers.jsto manage multi-user synchronization.App.tsxand mounted a "Live Battle" action button on theWelcomeScreen.tsxhero.ShieldAlert) inWorkoutScreen.tsx.socket.io-clientdependency.🔹 Why are these changes needed?
To gamify and introduce social elements to SpectraX, allowing users to connect, motivate, and compete with friends in real-time.
🛠️ Type of Change
🧪 Testing
✅ Tests Performed
🌐 Browsers Tested
📷 Screenshots / Demo (if applicable)
(Lobby grid showing player status, countdowns, and real-time rep counts)
📋 Checklist