Skip to content
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

Allow integration scripts to resolve asynchronously #4775

Closed
cdhowie opened this issue Oct 28, 2016 · 1 comment
Closed

Allow integration scripts to resolve asynchronously #4775

cdhowie opened this issue Oct 28, 2016 · 1 comment

Comments

@cdhowie
Copy link

cdhowie commented Oct 28, 2016

Your Rocket.Chat version: 0.44.0

It would be nice if integration script hooks could resolve asynchronously, either by accepting a callback parameter or returning a promise. We have some cases where we would like to call out to a third-party API to fetch some information about an object mentioned in chat.

Right now we have two integrations: one to send the message to a specialized node server we've written, and one to receive messages from that server. It would be nice if we could just put the code inline in a single integration, but right now script hooks must resolve synchronously, making this impossible.

@Sing-Li
Copy link
Member

Sing-Li commented Sep 5, 2019

Please see our documentation for Rocket.Chat Apps. It will handle the exact case you need.

@Sing-Li Sing-Li closed this as completed Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants