WasmEdge / WasmEdge

WasmEdge is a lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications. It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices.

Home Page:https://WasmEdge.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Communication between wasms

17862687921 opened this issue · comments

Summary

Does wasmedge have a function that enables communication between test.wasm and test2.wasm? Similar to inter-docker communication? Or test.wasm communicates with an instance in docker?

Appendix

No response

Hi,

Do you mean the multiple-module case in WASM?
For example, a WASM module (module A) export its function as name "func1" and module name "module1", and another WASM module (module B) import a function "module1" "func1".
With instantiating these 2 modules and linking them, the module B can invoke the imported function "func1" from the module A.

For this linking example, please refer to the multiple module example.

Thanks.