added echo to socket