Socket.io: Documentation enhancement request: make server-side nature of "room" abstraction clear and provide rationale.

Created on 25 Nov 2016  路  1Comment  路  Source: socketio/socket.io

I struggled for a while to understand that socket.io rooms are a server-side concept only - based on googling/reading stack overflow questions, I may not be the only one. I have two suggestions for enhancing the documentation:

  1. Would it be possible to update the documentation to make it clear that rooms are a server-side only concept? Consider that many readers may skip straight to the section for Rooms

  2. Would it be possible to add rationale for why rooms can't be joined on the client? socket.io makes already use of reserved events (like ping/pong), which I like others learned the hard way when I tried to use them - what is preventing you from adding a 'socket.join()' method on the client that sends a message with a reserved name to the server to join a room there?

Thanks for your consideration.

Most helpful comment

I agree. Furthermore, the docs should probably say what the differences between rooms and namespaces are for, philosophically speaking. Which use cases are best suited for a namespace vs a room?

>All comments

I agree. Furthermore, the docs should probably say what the differences between rooms and namespaces are for, philosophically speaking. Which use cases are best suited for a namespace vs a room?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmuth picture dmuth  路  3Comments

Elliot9 picture Elliot9  路  4Comments

jloa picture jloa  路  4Comments

chfeizy picture chfeizy  路  3Comments

MichaelJCole picture MichaelJCole  路  3Comments