dumping message send by the server to the console in the clients scripts
refactored into two seperate processes