Closed seratch closed 7 months ago
Attention: 6 lines
in your changes are missing coverage. Please review.
Comparison is base (
5afc51b
) 74.32% compared to head (97f9617
) 74.36%.
Files | Patch % | Lines |
---|---|---|
...va/com/slack/api/socket_mode/SocketModeClient.java | 0.00% | 5 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request resolves #1256 (and probably #1223 too) by improving the internals of the Socket Mode client code, thanks to @oppokui. This pull request changes the default behavior of the onClose listener not to try to reconnect. Originally, the logic was introduced to let the client get back to online much faster, and it has been working well as long as the server side behaves as the code expects. However, it seems that the server now works differently for some reason. Thus, revisiting the logic should be reasonable. Also, the change should be safe enough for the reasons mentioned in the code comment.
If some users would like to switch back to the previous logic for a certain logic, calling
SocketModeClient#setAutoReconnectOnCloseEnabled(true)
enables them to do so.Category (place an
x
in each of the[ ]
)Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.