slack-term 1.46.0 → 1.47.0
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/README.md +3 -0
- package/dist/cli.js +172 -172
- package/package.json +1 -1
- package/ts/cli.ts +2 -2
- package/ts/relay.ts +171 -10
- package/ts/stream.ts +2 -2
package/README.md
CHANGED
|
@@ -444,6 +444,9 @@ slack stream --grep '<@U00000001>' --replies-to self --json # + every reply in
|
|
|
444
444
|
when the relay is down it goes back to `--interval`. Both paths share one record of
|
|
445
445
|
what was printed, so a message is never printed twice. The relay is used only when
|
|
446
446
|
streaming as the bot (it rings for the bot's channels) and never with `--once`.
|
|
447
|
+
The connection is a WebSocket (the relay hibernates between bells, so an idle
|
|
448
|
+
connection costs next to nothing); against a relay deployed before that, it falls
|
|
449
|
+
back to Server-Sent Events. `SLACK_RELAY_TRANSPORT=websocket|sse` pins one.
|
|
447
450
|
- **Polling fallback** (no relay configured, `--as-user`, or `--no-relay`). The stream
|
|
448
451
|
prints a `WARNING: polling mode` line on stderr, pointing to the relay setup. It
|
|
449
452
|
polls every `--interval` (default `45s`), paced to stay inside Slack's rate limits:
|