socket ARE event type objects, so what else would you expect besides that they well be event driven?

All the above code would be is a "exit script" with special hidden ON EVENT for the remaineder of the script. Why write this in when the devices to access sockets have already been created.