Comments (3)
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.
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.
Going to close this for now. I think it was user error on my part.
from y-protocols.
Related Issues (12)
- It would be nice if the sync protocol function `readSyncMessage` wrote the update to the encoder HOT 5
- Non-transpiled code being exported HOT 1
- When yjs clientId changed by the yjs library, the awareness crash HOT 3
- Awareness update tiggered even without change. HOT 1
- Additional field to awareness update/change event HOT 1
- Possibility to disable change event completely HOT 1
- add `setRemoteState(clientID, state)` HOT 1
- Allow encoding awareness values as binary in updates HOT 2
- Issues importing as common js module HOT 1
- setLocalStateField() stops working after reconnecting to the server HOT 3
- ESM Import HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from y-protocols.