Rocket.Chat.js.SDK icon indicating copy to clipboard operation
Rocket.Chat.js.SDK copied to clipboard

Is this SDK thread safe?

Open genglinxiao opened this issue 1 year ago • 0 comments

I imagine someone had run into this already, but didn't find anything yet. I'm trying to write a bot using this SDK and wondering is it possible to handle multiple thread to better handle concurrent conversations. I would like to be able to register callback function for different person in different thread, for example, these 2 functions below:

await driver.subscribeToMessages();
await driver.reactToMessages(processMessages);

Is it OK to run them in dedicated threads? Or are there better ways?

genglinxiao avatar Oct 02 '23 13:10 genglinxiao