Re: [streams] Clarify how/whether Stream/TransformStream may read/write "messages" (#249)

It was a proposal for the spec, to clarify if the stream API may be used to send/receive atomic messages, in addition to byte-arrays. 

Great that you believe both use cases are valid. 

A concrete example for requirement #1:

Response C-T is application/json. The server is streaming a list of "entities" as a JSON array to the client application. Then, could I install a custom or predefined Transform function so that each chunk as delivered by the Stream API will represent a valid JSON element (or any array of elements).
.
#1.1 states that we should respect any wire-level message framing, as in the case of WebSocket.

Thanks.



---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/249#issuecomment-66393167

Received on Wednesday, 10 December 2014 02:01:20 UTC