Remove usage of internal api

This commit is contained in:
Tom Moor 2021-09-16 21:27:37 -07:00
parent bcf773a1d6
commit d7e9ad4f13
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export default class MultiplayerExtension extends Extension {
// only once we have authenticated successfully do we initalize awareness.
// we could send this earlier, but getting authenticated faster is more important
provider.on("authenticated", () => {
provider.awareness.setLocalStateField("user", user);
provider.setAwarenessField("user", user);
});
// only once an actual change has been made do we add the userId <> clientId