listen for a message from app

Simplified listen.cpp to get a message from the app - seemed to work.