However, if for any reason the connection to the rocketchat instance is closed (e.g. if it is down), then my bot will get stuck. it will not restart the connection nor will it stop working. I have to manually restart it to fix the issue.
I believe this could be handled inside the sdk. Is there such an implementation? If not, what would be the best way to handle this issue? For example, how could I make it so that it restarts the connection when it is closed?
I've set a bot to listen to messages of a rocketchat instance:
However, if for any reason the connection to the rocketchat instance is closed (e.g. if it is down), then my bot will get stuck. it will not restart the connection nor will it stop working. I have to manually restart it to fix the issue.
I believe this could be handled inside the sdk. Is there such an implementation? If not, what would be the best way to handle this issue? For example, how could I make it so that it restarts the connection when it is closed?