Feature
It would be nice if bolt provides an option to manually send an ack by user.
Currently, bolt automatically sends an ack for the Events API requests.
|
// Events API requests are acknowledged right away, since there's no data expected |
|
// Except function_executed events since ack can be handled by the user |
|
await ack(); |
Purpose
I use the socket mode client (@slack/socket-mode) for development in the multiple environments. My client sends an ack only if the message is for the corresponding environment.
For example,
- For the permanent environment, the client sends an ack if it receives a message without any prefix. e.g.,
@app Hello
- For an ephemeral environment, the client sends an ack if it receives a message with the prefix. e.g.,
[pr-123] @app Hello
In my experience, we should not use this pattern for permanent environments, because it causes a message delay. Slack retries to send a message until any client sends an ack.
I think this pattern is still useful if we want to test the client in an ephemeral environment.
Feature
It would be nice if bolt provides an option to manually send an ack by user.
Currently, bolt automatically sends an ack for the Events API requests.
bolt-js/src/App.ts
Lines 1173 to 1175 in e35ca5c
Purpose
I use the socket mode client (@slack/socket-mode) for development in the multiple environments. My client sends an ack only if the message is for the corresponding environment.
For example,
@app Hello[pr-123] @app HelloIn my experience, we should not use this pattern for permanent environments, because it causes a message delay. Slack retries to send a message until any client sends an ack.
I think this pattern is still useful if we want to test the client in an ephemeral environment.