Skip to content

Property 'allRooms' does not exist on type 'Adapter'.ts(2339) #444

Closed
@alkalox

Description

@alkalox

Using this snippet from the README,

const rooms = await io.of('/').adapter.allRooms();

Got a typescript error that allRooms does not exist on adapter ^^
Please update with what works to get the list of all rooms, across multiple nodes.

Using the version "@socket.io/redis-adapter": "^7.1.0", "socket.io": "^4.4.1",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions