Well the whole asynchronous nature of this setup is to deliver
messages to clients in this effectively realtime nature. Messages
won't be delivered to clients who are not connected. You can
manufacturer this window you're talking about on the server side of
things. I would suggest (using rails as an example), implementing a
queue that has a TTL for messages. You basically set up listeners for
the on subscribe event where messages are automatically served to
connecting clients if they are within that TTL.
I suppose you could mess with this on the client side, to delay
messages if they are the only people in a room. However, the right way
it seems is to associate something on the server side this this is
application specific logic and not logic pertaining to the socket
connection.