GithubHelp home page GithubHelp logo

Comments (7)

rauchg avatar rauchg commented on August 17, 2024

We ideally would provide the right interfaces to make this pluggable. I like this though, thanks for bringing it up @EugenDueck

from engine.io.

EugenDueck avatar EugenDueck commented on August 17, 2024

Fyi, regarding my comment about "MBWS doesn't support volatile packages" - MBWS's solution to that problem is MBLWS, the lightweight variant of the protocol without the sequence number and resync feature. According to Mark Hapner:

If you have a mix of messages, some requiring once-and-only-once delivery QoS (MBWS) and some requiring best-effort QoS (MBLWS) then you would use a separate socket for each.
The HyBi working group is currently in the process of extending WS to support multiplexing of logical WS sockets over a TCP socket. Once this is available, you can have a single socket that carries both.

from engine.io.

rauchg avatar rauchg commented on August 17, 2024

This would be cool to have a as a default with a configurable timeout. For you still want disconnections to be fired and buffers be discarded (or given to the developer?) past a certain threshold.

For example, if a reconnection is established within 15 seconds, to the user/developer we're like "a disconnection never happened".

Although this might be a better fit at the socket.io level, since it would bloat engine.io considerably.

from engine.io.

EugenDueck avatar EugenDueck commented on August 17, 2024

Agree, the buffers should be prevented from growing indefinitely.

A timeout and/or one of the solutions proposed here would do: #45 (comment)

from engine.io.

rauchg avatar rauchg commented on August 17, 2024

@EugenDueck I want something like this for socket 1.0/1.0+. Engine.IO will remain WS-like as far as the message reception guarantees.

from engine.io.

EugenDueck avatar EugenDueck commented on August 17, 2024

This is not a high priority feature for me right now, will try to figure out in the future how/if this could be done in the socket.io layer.

from engine.io.

rauchg avatar rauchg commented on August 17, 2024

@EugenDueck per your other message, basically by controlling what gets written at all times with the callback, instead of relying on engine.io's internal buffer

from engine.io.

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.