Coder Social home page Coder Social logo

Comments (3)

dmonad avatar dmonad commented on August 22, 2024

Which version of y-websocket are you using? Do you maintain your own y-websocket connector?

There was a recent change in y-protocols (hence the major release bump), that changed when awareness changes are fired.

Use the update event instead of the change event now when you want to listen to updates to send to other users.

from y-protocols.

vwall avatar vwall commented on August 22, 2024

Versions:
[email protected]
[email protected]

We use your y-websockt with a modified version of the server and utils.js. Mostly for auth and saving to Postgres.

I noticed the changes in the new y-protocols but it seems awareness.on('update') and awareness.on('change') mostly fire at the same time. You explain the difference in the docs about these two but it's going over my head for some reason :|

In that screen shot i'm logging both awareness.on('update') and awareness.on('change'). You can see both remove the user (3rd array type) with the clientID of 525835980 and never adds it back but CHANGE runs the update for that user.

from y-protocols.

vwall avatar vwall commented on August 22, 2024

Going to close this for now. I think it was user error on my part.

from y-protocols.

Related Issues (12)

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.