Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6156627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:38:35+00:00 2026-05-23T20:38:35+00:00

after progress on the question how to create socket.io multicast groups , I found

  • 0

after progress on the question how to create socket.io multicast groups, I found making rooms a great way to do what I needed.

However, it would be great to know about all the rooms, without an extra data-structure.

Is it possible to get a list of all rooms on the server from the server socket?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:38:37+00:00Added an answer on May 23, 2026 at 8:38 pm

    The short answer:

    io.sockets.adapter.rooms
    

    I analysed io:

    I got the following output:

    { server: 
       { stack: 
          [ [Object],
            [Object],
            [Object],
            [Object],
            [Object],
            [Object] ],
         connections: 3,
         allowHalfOpen: true,
         watcher: { host: [Circular], callback: [Function] },
         _events: 
          { request: [Function],
            connection: [Function: connectionListener],
            listening: [Object],
            upgrade: [Object] },
         httpAllowHalfOpen: false,
         cache: {},
         settings: { home: '/', env: 'development', hints: true },
         redirects: {},
         isCallbacks: {},
         _locals: { settings: [Object], app: [Circular] },
         dynamicViewHelpers: {},
         errorHandlers: [],
         route: '/',
         routes: 
          { app: [Circular],
            routes: [Object],
            params: {},
            _params: [],
            middleware: [Function] },
         router: [Getter],
         __usedRouter: true,
         type: 'tcp4',
         fd: 7 },
      namespaces: 
       { '': 
          { manager: [Circular],
            name: '',
            sockets: [Object],
            auth: false,
            flags: [Object],
            _events: [Object] } },
      sockets: 
       { manager: [Circular],
         name: '',
         sockets: { '210837319844898486': [Object] },
         auth: false,
         flags: { endpoint: '', exceptions: [] },
         _events: { connection: [Function] } },
      settings: 
       { origins: '*:*',
         log: true,
         store: 
          { options: undefined,
            clients: [Object],
            manager: [Circular] },
         logger: { colors: true, level: 1 },
         heartbeats: true,
         resource: '/socket.io',
         transports: 
          [ 'websocket',
            'htmlfile',
            'xhr-polling',
            'jsonp-polling' ],
         authorization: [Function],
         'log level': 1,
         'close timeout': 25,
         'heartbeat timeout': 15,
         'heartbeat interval': 20,
         'polling duration': 20,
         'flash policy server': true,
         'flash policy port': 843,
         'destroy upgrade': true,
         'browser client': true,
         'browser client minification': false,
         'browser client etag': false,
         'browser client handler': false,
         'client store expiration': 15 },
      handshaken: 
       { '210837319844898486': 
          { headers: [Object],
            address: [Object],
            time: 'Mon Jul 18 2011 00:53:27 GMT+0200 (CEST)',
            xdomain: false,
            secure: undefined,
            PHPSESSID: '7qo6cht3q0rskhfes4eesb2d05' } },
      connected: { '210837319844898486': true },
      open: { '210837319844898486': true },
      closed: {},
      closedA: [],
      rooms: 
       { '': [ '210837319844898486' ],
         '/public-alfred': [ '210837319844898486' ] },
      roomClients: { '210837319844898486': [ '': true, '/public-alfred': true ] },
      oldListeners: [ [Function] ],
      _events: 
       { 'set:origins': [Function],
         'set:flash policy port': [Function],
         'set:transports': [Function] } }
    

    after joining room “public-alfred” from a single client io.sockets.adapter.rooms contained:

     { '': [ '210837319844898486' ],
             '/public-alfred': [ '210837319844898486' ] }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After lots of attempts and search I have never found a satisfactory way to
Making good progress on rails now, but hit a snag on heroku deployment. After
After reading this question , I was reminded of when I was taught Java
(I realize that my title is poor. If after reading the question you have
How can I control where uploadify displays queue items and progress indicators? I would
I need to create a dynamic html table using PHP after parsing a JSON
I'm sure this question HAS to have been asked, but after searching through the
My question kind of applies to Prime Faces progress bar but any vanilla jsf
I have create an android quiz application where i loaded all of question from
After reading the Head First Design Patterns book and using a number of other

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.