Adds server socket function to emit a list of the public chat rooms available.