-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the processBeforeResponse flag #4
Comments
processBeforeResponse
flag
processBeforeResponse
flag
Thanks for flagging this! Yes, this example should be updated.
Yes, it is. If you initialize
No, you don't. When you turn on the option, your app waits for the whole completion of a listener function before sending an HTTP response to Slack regardless of the position of |
Thanks! that worked fine! |
I've updated this example to be up-to-date. Let me close this issue now. |
Hi @seratch, I am building a slack app on cloud functions (for now... cold starts are annoying...) and I think I should be using the
processBeforeResponse
as outlined in slackapi/bolt-js#444 but having issues figuring out how to use it. Is it as easy as just adding the option to my App constructor? Do I need to move byack()
calls to the end of my handler functions or can I keep them at the beginning?The text was updated successfully, but these errors were encountered: