modified tcp-chat/index.js ver.-1