Giter Club home page Giter Club logo

Comments (4)

Inumedia avatar Inumedia commented on August 16, 2024

@Jaykul , have you had any luck with this? It could just be sporadic connectivity issues on either end of the connection.

from slackapi.

jamiepenney avatar jamiepenney commented on August 16, 2024

I've had this issue with other libraries - I think it's a case of the websocket being closed from Slack's end rather than an error in the library. The solution in the nodejs library I used was to detect when the connection dropped and retry it, up to a maximum number of retries. Might be something that's needed here too? I've only just started using this library but I will take a quick look and see if I can figure out where this should go.

from slackapi.

dherzog90 avatar dherzog90 commented on August 16, 2024

same problem here, websocket is closed after awhile without any exceptions.

from slackapi.

IanLeeClaxton avatar IanLeeClaxton commented on August 16, 2024

I think I have traced this down to a bug detailed in this article:
https://stackoverflow.com/questions/40502921/net-websockets-forcibly-closed-despite-keep-alive-and-activity-on-the-connectio

For this to be the cause you will see a disconnect after about 100 seconds. If this is not the case you just need to create a timer to manage a ping /pong exchange and reconnect if unsuccessful.

There is a workaround but there will need to be a more permanent fix.

Best regards

Ian

from slackapi.

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.