microsoft / ClearScript

A library for adding scripting to .NET applications. Supports V8 (Windows, Linux, macOS) and JScript/VBScript (Windows).
https://microsoft.github.io/ClearScript/
MIT License
1.79k stars 149 forks source link

Streams API? #563

Closed tombatron closed 9 months ago

tombatron commented 9 months ago

Hi there!

I'm experimenting with the React Server APIs and wondering what my options are as far as rendering a component using the renderToReadableStream method. According to the documentation, this method returns a ReadableStream instance from the Streams API.

If this API is supported with ClearScript, is there any guidance that you could provide in leveraging it?

BTW, the renderToString method works like a champ, I'm just "exploring the space."

Thanks!

Tom

ClearScriptLib commented 9 months ago

Hi Tom,

ClearScript's V8-based script engine provides only the bare JavaScript environment and built-in objects. It supports neither the Web API nor the Node.js API, although the host is free to implement whatever APIs are required.

Cheers!