Skip to content

webassembly/library: Extract and send data to print as UInt8Array. #10079

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

Closed
wants to merge 2 commits into from

Conversation

Anton-2
Copy link
Contributor

@Anton-2 Anton-2 commented Nov 25, 2022

After discutions with @jimmo in #10064, this PR just extract bytes to be printed in an Uint8Array, and send it.
It's the receiving layer's responsibility to deal with decoding.
Tested and working in MicroPyScript, using TextDecoder to decode utf-8 data to js string.

@dpgeorge
Copy link
Member

Thanks for this. I've tested it on node and with a simple HTML page and it works.

Rebased and merged in db19ee7 with updates to the README.

@dpgeorge dpgeorge closed this Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants