bug fix - add messagelistener to chat object to receive message
add lost condition, pass end-to-end test