You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/apis/container-api/inter-container-messaging.md
-7Lines changed: 0 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,6 @@ Fails if the messaging system is not initialized, if `topic`, `content_type`, or
88
88
89
89
| Name | Type | Description |
90
90
| ---- | ---- | ----------- |
91
-
|`exec_env`|*wasm_exec_env_t*| Currently unused but required for compatibility with WebAssembly runtime |
92
91
|`topic`|*char*| Topic name to publish the message to |
93
92
|`content_type`|*char*| Content type of the message (`MIME` type recommended) |
94
93
|`payload`|*void*| Pointer to the **message payload buffer**|
@@ -113,7 +112,6 @@ int ocre_subscribe_message(char *topic, char *handler_name);
113
112
114
113
| Name | Type | Description |
115
114
| ---- | ---- | ----------- |
116
-
| `exec_env` | *wasm_exec_env_t* | WebAssembly execution environment used to locate the callback function in the WebAssembly module. |
117
115
| `topic` | *char* | Topic name to subscribe to |
118
116
| `handler_name` | *char* | Name of the callback function to be called when a message is received |
119
117
@@ -151,11 +149,6 @@ The following example demonstrates how to use the Inter-Container Messaging API
151
149
- The **[Publisher Container](#publisher-container)** sends JSON-formatted temperature readings to the `sensors/temperature` topic every 500 milliseconds.
152
150
- The **[Subscriber Container](#subscriber-container)** subscribes to this topic and processes incoming messages.
153
151
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.
0 commit comments