You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With simple slack api, using directconnection as follows, slack takes almost 3 minutes to establish initial connection.
SlackSession session = SlackSessionFactory.createWebSocketSlackSession("slack-bot-auth-token");
Is there any performance improvement can be done where it doesnot read all users/channels info at the start.
We have larger team with 4000+ users as of now.
The text was updated successfully, but these errors were encountered:
A similar library been also facing this issue: slack-ruby/slack-ruby-client#134. Seems like either timeout needs to be increased to 180+ seconds or try implement rtm.connect instead of rtm.start, not sure..
Any updates on this issue?
I figured this out.
The library uses rtm.start API which sends a websocket URL that expires within 30 seconds (https://api.slack.com/methods/rtm.start).
In large teams, SlackJSONSessionStatusParser would be spending a lot of time parsing the users/channels response before returning to allow the websocket URL connection.
A fix would be connecting to the websocket URL ASAP before doing anything else, or implement rtm.connect API instead @bcorne@JayshreeM
Tried it locally, works!
With simple slack api, using directconnection as follows, slack takes almost 3 minutes to establish initial connection.
SlackSession session = SlackSessionFactory.createWebSocketSlackSession("slack-bot-auth-token");
Is there any performance improvement can be done where it doesnot read all users/channels info at the start.
We have larger team with 4000+ users as of now.
The text was updated successfully, but these errors were encountered: