Git Product home page Git Product logo

Comments (6)

seratch avatar seratch commented on August 11, 2024 1

I realized that calling RTMClient#disconnect() then RTMClient#connect()surely doesn;t work for the case. So, since version 1.3.0, I've added RTMClient#reconnect() which works for any cases.

Also, I applied the changes to RTMClient regarding its behavior when receiving some errors. Previously, the client used to abandon the underlying WebSocket session when it gets errors, anyway. But I found that it's not a proper way to handle errors. Therefore, since version 1.3.0, the default error handler no longer does the removal of sessions. The change may be beneficial for your use cases.

from java-slack-sdk.

seratch avatar seratch commented on August 11, 2024

I've not investigated your situation on my end yet but, at least, I can say that you don't need to reboot the entire application. RTMClient doesn't depend on any states inside your singleton Slack instance except for wssUrl. So, I guess, when you have the unexpected shut down of the RTM client, you should be able to recover it by just calling RTMClient#disconnect() then RTMClient#connect(). The connect method establishes a new session with the server. https://github.com/seratch/jslack/blob/1.1.7/src/main/java/com/github/seratch/jslack/api/rtm/RTMClient.java#L31-L35

from java-slack-sdk.

rahulsom avatar rahulsom commented on August 11, 2024

Weirdly, that did not work.
I stopped making Slack a bean and instead created a holder that was a bean, had it discard and recreate the Slack object and initialize it.
That works, and for now, my problem is gone.

I'll leave this open to investigate the The decoded text message was too big for the output buffer and the endpoint does not support partial messages error.

Thanks!

from java-slack-sdk.

seratch avatar seratch commented on August 11, 2024

Thank you for your response. I'm fine to leave this issue open, too.

from java-slack-sdk.

seratch avatar seratch commented on August 11, 2024

Let me know if I should not close this issue. Otherwise, please allow me to close this within a few days.

from java-slack-sdk.

rahulsom avatar rahulsom commented on August 11, 2024

Thanks! I haven't seen this problem in a while.

from java-slack-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.