refactor code, making changes to checkdata function inside offline_data_update
Missing socket.set('room') accidentally