Rocket.Chat.js.SDK
Rocket.Chat.js.SDK copied to clipboard
Is this SDK thread safe?
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?