calling after connection is open
added message-chat example