slack-bot-api
slack-bot-api copied to clipboard
team_migration_started Question
Is there a graceful way to handle this Slack event? Is calling login() again sufficient? If a 'migration_in_progress' event is received, will the code handle it gracefully? (e.g. sleep, poll again)
When clients receive this event, immediately start a reconnection process by calling rtm.start again. You may receive occasional migration_in_progress errors when re-calling rtm.start. If this happens you should wait a few seconds and try again. If the error continues you should wait longer before retrying, and so on.
Source: https://api.slack.com/events/team_migration_started