socketio / socketio/socket.io

Send message to a Set<Room>

Open
#5,418 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
63.2k
Forks
10.3k
Avg merge
11d 20h
Merged PRs (30d)
2

Description

Is your feature request related to a problem? Please describe.
I would like to send a message to a Set of Rooms.

Describe the solution you'd like
Since https://github.com/socketio/socket.io/commit/085d1de9df909651de8b313cc6f9f253374b702e, socket.io accepts an array.
To go further, it could accept Sets, or even iterables.

Describe alternatives you've considered
In the meantime, I'm simply using Array.from(...).

Additional context
This feature is obviously not mandatory, but I think a number of developers would benefit from it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting commit 085d1de9df909651de8b313cc6f9f253374b702e and the current room-targeting send API. Determine how arrays are handled, then define support for Set or iterable room collections; done means callers can pass the requested collection without converting it with Array.from(...).

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.