Send message to a Set<Room>
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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