@interactive-inc/flume 0.9.3 → 0.9.4
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/dist/flume-source.d.ts +6 -0
- package/dist/slack.js +1 -0
- package/package.json +1 -1
package/dist/flume-source.d.ts
CHANGED
|
@@ -183,6 +183,12 @@ type FlumeSlackSourceOptions = {
|
|
|
183
183
|
* `auth.test` での self 検出) が必ず使うため型で保持を強制する
|
|
184
184
|
*/
|
|
185
185
|
botToken: string;
|
|
186
|
+
/**
|
|
187
|
+
* Optional frame-silence watchdog. When set, the Slack WebSocket is closed
|
|
188
|
+
* and handed to the reconnect path after this many milliseconds without any
|
|
189
|
+
* inbound frame.
|
|
190
|
+
*/
|
|
191
|
+
idleTimeoutMs?: number | null;
|
|
186
192
|
};
|
|
187
193
|
type FlumeGitHubSourceOptions = {
|
|
188
194
|
token: string;
|
package/dist/slack.js
CHANGED
|
@@ -589,6 +589,7 @@ var FlumeSlackSource = class extends FlumeSource {
|
|
|
589
589
|
this.setStatus("connecting");
|
|
590
590
|
this.socket = new FlumeSlackSocketMode({
|
|
591
591
|
appToken: this.options.appToken,
|
|
592
|
+
idleTimeoutMs: this.options.idleTimeoutMs,
|
|
592
593
|
onLog: ctx.log.handler,
|
|
593
594
|
deps: ctx.deps,
|
|
594
595
|
onMessage: (envelope) => this.handleMessage(ctx, envelope),
|
package/package.json
CHANGED