Taritsyn / JavaScriptEngineSwitcher

JavaScript Engine Switcher determines unified interface for access to the basic features of popular JavaScript engines. This library allows you to quickly and easily switch to using of another JavaScript engine.
Apache License 2.0
439 stars 49 forks source link

Node Stream #100

Open LorenDorez opened 2 years ago

LorenDorez commented 2 years ago

So the Node Engine implementation for javascript.Nodejs supports returning a stream from node to .net by setting the return type to Stream. However, JES has a validation helper that check to make sure the return type is valid and stream is not one of them.

Is there a reason or can we look to see about allowing this?

Taritsyn commented 2 years ago

Hello, Dorez!

So the Node Engine implementation for javascript.Nodejs supports returning a stream from node to .net by setting the return type to Stream.

All other JS engines do not support this feature.

However, JES has a validation helper that check to make sure the return type is valid and stream is not one of them.

This is how it is intended, because the JavaScript Engine Switcher library determines unified interface for access to the basic features of popular JS engines.

Perhaps you should use the Jering.Javascript.NodeJS library directly.

LorenDorez commented 2 years ago

Thanks for the reply and info. I can see where it would be out of scope for this project. I'll look to mock something up.

I just want to experiment with in junction with ReactJS.net using the new render stream to support lazy on ssr in react v18.

Thanks for a great project btw.