
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
matchmaker-redis
Advanced tools
A module that helps users join some kind of social event such as a multiplayer game.
A Node.js module that helps users create, find, and join "events" such as a multiplayer game. You may think of this as a matchmaking lobby backend.
A running Redis instance.
npm i --save matchmaker-redis
const Redis = require('ioredis')
const redis = new Redis(process.env.REDIS_URL)
const matchmaker = require('matchmaker-redis')(redis)
matchmaker.createEvent(...)
An event looks like this:
event = {
id: string,
capacity: int,
params: string,
userIds: [string],
userAliases: [string],
startedAt: int
}
Create an event and wait for others to join it.
createEvent({
userId: string,
userAlias: string,
capacity: int,
params: string,
perUserTimeoutSec: int,
whitelist: [string],
blacklist: [string],
}) -> Promise(event)
Find a pending event with the given params and user count and join it.
autojoinEvent({
userId: string,
userAlias: string,
capacity: int,
params: string,
}) -> Promise(event)
The creator may cancel an event before it auto-expires.
cancelEvent(userId, eventId) -> Promise(true)
Get the pending and active events the user has created, joined, or been whitelisted on.
getEventsFor(userId) -> Promise({
active: [event],
pending: [event]
})
Join a specific event. Usually in response to a user seeing that they are on a whitelist.
joinEvent(userId, userAlias, eventId) -> Promise(event)
When a user joins an event, a JSON message is published to channel events/${event.id}.
{ "type": "join",
"userId": string,
"userAlias": string }
When an event is canceled, a message is published to channel events/${event.id}.
{ "type": "cancel" }
Uses Redis for event coordination and storage but is not associated with any particular transport (HTTP, WebSockets, etc).
Note that the TEST_DB_NO (default: 1) database will be cleared/flushed.
$ git clone ...
$ npm i
$ redis-server &
$ REDIS_URL=redis://127.0.0.1:6379 \
TEST_DB_NO=1 \
DEBUG=tests npm test
FAQs
A module that helps users join some kind of social event such as a multiplayer game.
We found that matchmaker-redis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.