slack-bot-api icon indicating copy to clipboard operation
slack-bot-api copied to clipboard

team_migration_started Question

Open unijohn opened this issue 7 years ago • 0 comments

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

unijohn avatar Apr 30 '17 04:04 unijohn