Added join room and keep connection functionality.