Remove usage of internal api
This commit is contained in:
parent
bcf773a1d6
commit
d7e9ad4f13
@ -36,7 +36,7 @@ export default class MultiplayerExtension extends Extension {
|
|||||||
// only once we have authenticated successfully do we initalize awareness.
|
// only once we have authenticated successfully do we initalize awareness.
|
||||||
// we could send this earlier, but getting authenticated faster is more important
|
// we could send this earlier, but getting authenticated faster is more important
|
||||||
provider.on("authenticated", () => {
|
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
|
// only once an actual change has been made do we add the userId <> clientId
|
||||||
|
Reference in New Issue
Block a user