Coder Social home page Coder Social logo

Example crash about neel HOT 2 CLOSED

sumatoshi avatar sumatoshi commented on May 29, 2024
Example crash

from neel.

Comments (2)

Niminem avatar Niminem commented on May 29, 2024 1

@sumatoshi Excuse the long delay on my end.

What happens when you refresh the page or visit another URL in your app, the web socket connection is closed and a procedure is called that checks, after 1.2 seconds, if another web socket connection exists. If it does not- the application closes. The reason this procedure even exists is because we need a way for the server to know if the browser window/tab is closed.

In all honesty it's a short term solution, or Band-Aid, for a long term problem. @NecroticOoze and I are considering having Neel act as a Single Page Application, and exploring other options.

Will keep this thread open and update you here with changes to this functionality

from neel.

Niminem avatar Niminem commented on May 29, 2024

@sumatoshi

To prevent crashes when users spam refresh or constantly switch between different pages, we implemented a looping countdown timer before shutting down. Approximately 10 seconds after closing the app window, the server and program is killed if a WebSocket hasn't already reconnected within that time period. This does cause a delay from the time you close out of the app, just keep that in mind before doing CTL+C in the terminal during testing. It can be a little annoying for us having to wait 10 seconds before we can recompile but saves the pain of any user accidently crashing the app! This was the best solution with current implementation of Neel.

from neel.

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.