Merge the longpoll function to the room