Code Monkey home page Code Monkey logo

Comments (6)

mygzi avatar mygzi commented on July 28, 2024 1

@zackbloom @nilskp check out joewalnes/reconnecting-websocket#1, a model for general purpose WebSocket monitoring / recovery.

from offline.

zackbloom avatar zackbloom commented on July 28, 2024

Hmmm, interesting. It's pretty complex to do though, as we'd have to reopen the socket after the connection is restored, and many servers are set up to do something when a connection is initiated, so it is not going to work perfectly out-of-the-box in every situation.

from offline.

nilskp avatar nilskp commented on July 28, 2024

Server side making, wrong, assumptions about web socket connecting should not mean we don't get this functionality.

from offline.

zackbloom avatar zackbloom commented on July 28, 2024

Is it a wrong assumption to assume a client is connecting when you get a client opening a connection?

I'm happy to review a PR, if you'd like to make one @nilskp

from offline.

nilskp avatar nilskp commented on July 28, 2024

Well, it's wrong to assume that a WebSocket connection is so stable that a client is never dropped and thus never needs to reconnect. I don't know in which universe that would be a good assumption.

from offline.

zackbloom avatar zackbloom commented on July 28, 2024

Fair enough, sounds good to me.

from offline.

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.