make function for room of socket