-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Events API in socket mode for Slack adapter #2161
base: master
Are you sure you want to change the base?
Conversation
@@ -47,6 +53,135 @@ func (b *Bslack) handleSlack() { | |||
} | |||
} | |||
|
|||
func (b *Bslack) handleSlackClientSocketMode(messages chan *config.Message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method Bslack.handleSlackClientSocketMode
has 107 lines of code (exceeds 50 allowed). Consider refactoring.
@@ -47,6 +53,135 @@ func (b *Bslack) handleSlack() { | |||
} | |||
} | |||
|
|||
func (b *Bslack) handleSlackClientSocketMode(messages chan *config.Message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method Bslack.handleSlackClientSocketMode
has a Cognitive Complexity of 47 (exceeds 20 allowed). Consider refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 236869 lines exceeds the maximum allowed for the inline comments feature.
- Added support of Event API in socketMode - Fix files upload for new applications
Code Climate has analyzed commit 5b86262 and detected 4 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
This is beta version for modern Slack applications.
Changes implement Slack Events API in socket mode, see #964.
Fixes #2159
It also fixes files upload to Slack for modern Apps.
To activate Ecvents API in SocketMode you must: