Solid · API

stream.write

Feeds the next chunk of the reply to the stream. A chunk may end anywhere, including inside a key, a string or a number. Returns nothing and never throws: invalid input is reported through onError.

Schema
z.object({ show: z.string(), night: z.string() })
Stream, chunk by chunk
Reply so far
{"sh
Current value
{ show: '', night: '' }
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.