Coder Social home page Coder Social logo

Comments (9)

josqu4red avatar josqu4red commented on August 24, 2024

Had the case a few times on my instance, just after a team_migration_started event.

from lita-slack.

josacar avatar josacar commented on August 24, 2024

Maybe the simplest thing is shutdown the robot like this:

websocket.on(:close) { log.info("Disconnected from Slack."); robot.shut_down }

from lita-slack.

jimmycuadra avatar jimmycuadra commented on August 24, 2024

Agreed. Reconnection should be handled by a process manager. What lita-slack should do is make sure the process shuts down correctly when the connection is lost.

from lita-slack.

ikeji avatar ikeji commented on August 24, 2024

Thanks a lot!!

from lita-slack.

jimmycuadra avatar jimmycuadra commented on August 24, 2024

You're welcome! This was released in gem version 1.1.0.

from lita-slack.

josacar avatar josacar commented on August 24, 2024

Thanks!

from lita-slack.

reidblomquist avatar reidblomquist commented on August 24, 2024

@jimmycuadra why is it your opinion that this should be handled by a process manager instead of making this process bulletproof? as far as I know the IRC adapter can auto reconnect...

from lita-slack.

jimmycuadra avatar jimmycuadra commented on August 24, 2024

If someone wants to implement auto-reconnection, I'd be happy to take a PR. See litaio/lita-hipchat#20 for a discussion on this topic in the HipChat adapter where people convinced me the plugin should do it.

from lita-slack.

reidblomquist avatar reidblomquist commented on August 24, 2024

Awesome, thanks for the input @jimmycuadra - will read over your comments there and work on putting together a PR.

from lita-slack.

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.