Skip to content
New issue

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

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

Already on GitHub? # to your account

Added raw call support to wasm codegen #371

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Added raw call support to wasm codegen #371

merged 1 commit into from
Jul 13, 2023

Conversation

jsoverson
Copy link
Contributor

When importing components, the default methods naively decode types and don't account for substream bracketing. The default codegen should be improved but – in the meantime – this PR adds a opname_raw() complementary method to make the call and receive the unprocessed stream.

This PR also adds a formatter to the codegen so debugging is a bit easier.

@jsoverson jsoverson force-pushed the codegen-raw-calls branch from 09ad5ca to 27719bd Compare July 13, 2023 17:54
@jsoverson
Copy link
Contributor Author

@fawadasaurus this should give you the freedom to manage your own responses from wasm. Every component.op() method now has a component.op_raw() complement which returns the single stream of Packets

@jsoverson jsoverson merged commit 4542879 into main Jul 13, 2023
@jsoverson jsoverson deleted the codegen-raw-calls branch July 13, 2023 18:13
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants