socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

feat(socket.io): leave multiple rooms at once

Open chojs23 opened this issue 3 weeks ago • 0 comments

The kind of change this PR does introduce

  • [ ] a bug fix
  • [x] a new feature
  • [ ] an update to the documentation
  • [ ] a code change that improves performance
  • [ ] other

Current behavior

Can only leave single room with Socket.leave() method

New behavior

Server-side sockets can now leave several rooms in a single socket.leave([...]) call. The in-memory adapter (and tests) were updated so Adapter.del() accepts a Set<Room>, keeping server state consistent without per-room calls.

Other information (e.g. related issues)

#5391

chojs23 avatar Dec 01 '25 07:12 chojs23