Coder Social home page Coder Social logo

Comments (8)

daffl avatar daffl commented on June 13, 2024

This seems really strange but I could indeed not get the chat working with this setting either. Since this behaviour does not seem to be documented anywhere, it seems like a bug in Socket.io though.

from feathers.

mrabczuk75 avatar mrabczuk75 commented on June 13, 2024

from feathers.

jd1378 avatar jd1378 commented on June 13, 2024

I just got this bug today, and its as mrabczuk75 describes
adding ackTimeout breaks the client, removing it brings back the correct behavior

from feathers.

daffl avatar daffl commented on June 13, 2024

Oh yes, I was able to confirm this but apparently didn't reply here. If we can have tests for the proposed fix it probably makes sense to include it.

from feathers.

jd1378 avatar jd1378 commented on June 13, 2024

if the ack feature is always used, why not use emitWithAck instead of emit, since emitWithAck seems to be always returning a promise

edit: now I see that emitWithAck does not return all ack values, investigating on socket.io side ...
edit 2: it seems socketio uses emit for emitWithAck under the hood anyway

from feathers.

jd1378 avatar jd1378 commented on June 13, 2024

I'm trying to hack a patch on my code to test it but I can't really find where the magic is happening exactly

I have found these so far but still haven't figure it out:


this.connection[this.method](...args)

from feathers.

jd1378 avatar jd1378 commented on June 13, 2024

Okay, tested and made it a bit more clear
it works
I'll try to make a PR

from feathers.

jd1378 avatar jd1378 commented on June 13, 2024

I made the PR and added a test, but the test is probably not good since it isn't the actual socket io calling the callback, meaning if it breaks later (behavior change of socket io I mean), we won't know

from feathers.

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.