Skip to content

Commit

Permalink
IoT: Fix connection closed after 5 minutes (#3545)
Browse files Browse the repository at this point in the history
* fix: iot connection closed after 5 min

* Create moody-needles-relax.md

---------

Co-authored-by: Dax <mail@thdxr.com>
  • Loading branch information
coronapl and thdxr committed Dec 13, 2023
1 parent 1d9940a commit 366ffed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-needles-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"sst": patch
---

IoT: Fix connection closed after 5 minutes
1 change: 1 addition & 0 deletions packages/sst/src/iot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export const useIOT = lazy(async () => {
secretKey: creds.secretAccessKey,
sessionToken: creds.sessionToken,
reconnectPeriod: 1,
keepalive: 60,
});
const PREFIX = `/sst/${project.config.name}/${project.config.stage}`;
device.subscribe(`${PREFIX}/events`, { qos: 1 });
Expand Down

0 comments on commit 366ffed

Please sign in to comment.