Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streams are broken in electron #433

Open
fstanis opened this issue Mar 4, 2025 · 0 comments
Open

Streams are broken in electron #433

fstanis opened this issue Mar 4, 2025 · 0 comments
Assignees

Comments

@fstanis
Copy link

fstanis commented Mar 4, 2025

I have the following trivial method:

public static Stream TestStream()
{
    return new MemoryStream(System.Text.Encoding.UTF8.GetBytes("hello"));
}

I'm noticing a different behavior when I use it in Electron compared to Node.js - even though there's no error, the Electron version appears empty:

console.log(MyClass.testStream().read()); // null in electron, Buffer in Node.js

Potentially related to #383, although I'm unsure if this implementation somehow uses external buffers?

@vmoroz vmoroz self-assigned this Mar 14, 2025
@vmoroz vmoroz moved this to 📋 Backlog in node-api-dotnet tasks Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants