sst 2.0.0-rc.34 → 2.0.0-rc.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/runtime/iot.js +3 -0
- package/sst.mjs +3 -0
package/package.json
CHANGED
package/runtime/iot.js
CHANGED
|
@@ -11,4 +11,7 @@ export const useIOTBridge = Context.memo(async () => {
|
|
|
11
11
|
bus.subscribe("function.error", async (evt) => {
|
|
12
12
|
iot.publish(topic, "function.error", evt.properties);
|
|
13
13
|
});
|
|
14
|
+
bus.subscribe("function.ack", async (evt) => {
|
|
15
|
+
iot.publish(topic, "function.ack", evt.properties);
|
|
16
|
+
});
|
|
14
17
|
});
|
package/sst.mjs
CHANGED
|
@@ -2133,6 +2133,9 @@ var init_iot2 = __esm({
|
|
|
2133
2133
|
bus.subscribe("function.error", async (evt) => {
|
|
2134
2134
|
iot2.publish(topic, "function.error", evt.properties);
|
|
2135
2135
|
});
|
|
2136
|
+
bus.subscribe("function.ack", async (evt) => {
|
|
2137
|
+
iot2.publish(topic, "function.ack", evt.properties);
|
|
2138
|
+
});
|
|
2136
2139
|
});
|
|
2137
2140
|
}
|
|
2138
2141
|
});
|