Add WASM agent support for JavaScript runtimes

Compile the agent to WebAssembly for deployment in JS runtimes (Bun,
Node.js, or any runtime implementing the TCPDial/UDPListen interface).

- Split network and UDP code with js/native build tags
- Extract UDP relay into a platform-agnostic shared layer
- Expose runtime-agnostic TCPDial and UDPListen JS hooks
- Add azure-sdk-for-go fork as submodule for WASM-compatible mmf fallback
- Bump aznet dependency
- Document WASM build and JS interface in README
This commit is contained in:
Atsika
2026-03-19 11:04:18 +01:00
parent 77a7eb53af
commit 5b21bc7cda
21 changed files with 593 additions and 302 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "pkg/azure-sdk"]
path = pkg/azure-sdk
url = https://github.com/Atsika/azure-sdk-for-go.git