In this excerpt, the author describes two different settings. First, he presents the setting in which the main character is located. Second, he talks about the setting in which the friend is present. We learn that the friend is wandering and watching with eager ears. The main purpose of the word "meanwhile" is to show that the two events being described are taking place at the same time.