Upated from socket.lines to socket.each_line