I\'m trying to read a stream of info from a connection. I haven\'t written the server part of it, and don\'t have access to modifying the protocol (or else I would have made the
If you want to read the whole stream of the connection you could use:
var b bytes.Buffer if _, err:= io.Copy(&b, conn); err != nil { return err } Handle(b.Bytes())