Giter Site home page Giter Site logo

Comments (3)

squaremo avatar squaremo commented on August 27, 2024

In this case, once the rabbit.js connections are down, your SockJS connections are no good either. So I think you'll have to close those as well, and force the clients (i.e., the code running in browsers) to reconnect -- their messages are going nowhere in the meantime anyway.

The alternative is to buffer messages (from the browser) while RabbitMQ is offline, but I think that's more complicated for no particular gain. If you want reliability, you can't really mask the fact that the browser is going to have to retry things (whether it's replaying messages, or reconnecting, or whatever).

from rabbit.js.

imboxswedenab avatar imboxswedenab commented on August 27, 2024

Might just be best to let the node server crash and have forever restart it then i think.

Thanks for you reply squaremo and thank you for a fantastic lib!

from rabbit.js.

squaremo avatar squaremo commented on August 27, 2024

Might just be best to let the node server crash and have forever restart it then i think.

Yes, that's reasonable -- that way you can be confident all the resources will be freed up (although, it's not an excuse not to try and clean up ...).

from rabbit.js.

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.