Skip to content

Joining same room more then once and clients in a room #1544

@ismarslomic

Description

@ismarslomic

I'm trying to figure out what happens if the clients emits to join the same room more then once, To test and find answer on this I wanted initially to find out how many clients room has after same clients send more then one emit for joining the room, but Rooms chapter in wiki is outdated. When I try to use io.sockets.clients('room') I get Object #<Namespace> has no method 'clients'.

So I got two questions:

  1. what happens if client tries to join same room more then once? Will he get emits for that room for each time he has tried to join?
  2. How can I find out which clients are in a room?

Im using socket.io v1.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions