Skip to content

Conversation

@SHIVA00202
Copy link
Contributor

@SHIVA00202 SHIVA00202 commented Oct 30, 2025

Description

Description

This pull request adds full backend functionality for room management in the application. It includes routes and logic for creating, listing, joining, leaving, and ending rooms, with real-time updates powered by Socket.IO.

Key Features

Create Room: Allows authenticated users to create new rooms. Prevents duplicate room names.

List Rooms: Fetches all available rooms with populated member details.

Join Room: Enables users to join existing rooms, notifying all participants in real time.

Leave Room: Allows users to leave rooms; if a room becomes empty, it gets automatically deleted.

End Room: Only the host (first member) can end the room for all participants.

Real-time Events: Integrated with Socket.IO for broadcasting events like room creation, member join/leave, and room ending.

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

All participants receive real-time updates on leave/end events.
Closes #12

Checklist

Copy link
Member

@04shubham7 04shubham7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Fine

@04shubham7 04shubham7 merged commit c0ce2d2 into OPCODE-Open-Spring-Fest:main Oct 31, 2025
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Support for Leaving/Ending Rooms

2 participants