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
-
Hi, I've noticed that both
server
andprovider
use theupdate
-event forawareness
, but this event is triggered every timeawareness.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?Beta Was this translation helpful? Give feedback.
All reactions