You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've noticed that both server and provider use the update-event for awareness, but this event is triggered every time awareness.setLocalState is called, even if the state hasn't changed.
Why not use the change-event instead, which is only triggered when the local awareness state actually changes?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've noticed that both
serverandprovideruse theupdate-event forawareness, but this event is triggered every timeawareness.setLocalStateis called, even if the state hasn't changed.Why not use the
change-event instead, which is only triggered when the local awareness state actually changes?Beta Was this translation helpful? Give feedback.
All reactions