while(<$connection>) { # waits for data # handle the incoming message