Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ndjson has an actual spec (however bitrotted), everything else in that space makes rookie mistakes like not specifying that a newline is a required message terminator -- consider receiving "13\n42", is that truncated or not?

https://github.com/ndjson/ndjson.github.io/issues/1#issuecom...

None of the above is actually good enough to build on, so a thousand little slightly-different ad hoc protocols bloom. For example, is empty line a keepalive or an error? (This might be perfectly fine. They're trivial to program, not like you need a library.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: