Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. alee
alee

alee

@alee

Chat Follow Unfollow
0
Reputation
2
Posts
946
Profile views
0
Followers
0
Following
Joined 20 Sept 2019, 21:49 Last Online 16 Nov 2022, 00:03

  • Profile
  • More
    • Continue chat with alee
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
alee Follow

Posts made by alee

RE: MapSchema clear()

It looks like running map.forEach( (elt) => map.delete(elt.id) ) on the server side triggers the onRemove on the client side properly, is this the recommended way to clear a MapSchema?

posted in Questions & Help • 27 Oct 2021, 22:49
MapSchema clear()

Hi there,

We're running into some issues with a MapSchema that we are trying to synchronize between the server and client. We want to clear the map via map.clear() and have the changes propagated to the client. What should we be implementing on the client side, onRemove that removes each element in the map by id or onChange on the parent property as a bulk change?

posted in Questions & Help • 27 Oct 2021, 22:32

© 2023 Endel Dreyer