Skip to content
Discussion options

You must be logged in to vote

Hi! You can use the local flag:

const sockets = await io.local.in("the-room").fetchSockets();

Reference: https://socket.io/docs/v4/server-api/#serverfetchsockets

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant