zaptst / zap

A streamable structured interface for real time reporting of developer tools.
MIT License
120 stars 1 forks source link

Use event stream format? #5

Closed Daniel15 closed 6 years ago

Daniel15 commented 6 years ago

Instead of just using newline delimited JSON, what about using the event stream format from Server Sent Events?

https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format

That'd give you an easy way to subscribe to updates from JS in a browser, since it's already in a format supported by browsers.

jamiebuilds commented 6 years ago

It seems like you could pretty easily build a tool for this, but newline delimited JSON is going to be super easy to parse in every language.