Re:Why We’re Switching to gRPC
by jwalton on Monday May 27, 2019 @02:16PM
(#20024149)
See my edited example above; you can stream data to this, it'll stream nicely to the browser. This uses "\n"s at the end of every line, which means you can write a very simple streaming parser client side, because you can just split the input at "\n," to get nice JSON bits, but there's certainly JSON streaming libraries on NPM that will parse this for you more "properly". And, it parses with a normal JSON parser too.
[ Parent
| on HN ]
There are no comments on this comment yet.