Solid · API
stream.onFinal
Subscribes a listener that is called once, with the final value. On the root stream that is when the closing brace of the reply arrives or when close() is called. On a selected stream it is when the value at that path is complete, which is usually earlier.
z.object({ show: z.string(), night: z.string() })stream.onFinal((value) => calls.push(value))
Stream, chunk by chunk
{"show":"The Tempest",[]
Runs in this page on the installed package. The input and the expected output are defined by the example.