Skip to content

Commit 71b190c

Browse files
committed
Removed mention of wasm_exec_env_t from the messaging docs
1 parent 2e01fda commit 71b190c

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

docs/reference/apis/container-api/inter-container-messaging.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ Fails if the messaging system is not initialized, if `topic`, `content_type`, or
8888

8989
| Name | Type | Description |
9090
| ---- | ---- | ----------- |
91-
| `exec_env` | *wasm_exec_env_t* | Currently unused but required for compatibility with WebAssembly runtime |
9291
| `topic` | *char* | Topic name to publish the message to |
9392
| `content_type` | *char* | Content type of the message (`MIME` type recommended) |
9493
| `payload` | *void* | Pointer to the **message payload buffer** |
@@ -113,7 +112,6 @@ int ocre_subscribe_message(char *topic, char *handler_name);
113112
114113
| Name | Type | Description |
115114
| ---- | ---- | ----------- |
116-
| `exec_env` | *wasm_exec_env_t* | WebAssembly execution environment used to locate the callback function in the WebAssembly module. |
117115
| `topic` | *char* | Topic name to subscribe to |
118116
| `handler_name` | *char* | Name of the callback function to be called when a message is received |
119117
@@ -151,11 +149,6 @@ The following example demonstrates how to use the Inter-Container Messaging API
151149
- The **[Publisher Container](#publisher-container)** sends JSON-formatted temperature readings to the `sensors/temperature` topic every 500 milliseconds.
152150
- The **[Subscriber Container](#subscriber-container)** subscribes to this topic and processes incoming messages.
153151
154-
**Notes**:
155-
- The `wasm_exec_env_t` parameter is required for WebAssembly function signatures but may be unused in some cases (e.g., publishing). In real applications, it is provided by the WASM runtime.
156-
- Use `ocre_sleep` instead of POSIX `sleep`.
157-
- The messaging system automatically handles memory allocation and deallocation for messages passed to callback functions.
158-
159152
---
160153
161154
### Publisher Container

0 commit comments

Comments
 (0)