ArraySchema not sending removed items to client
-
Hey all!
I've been removing items from an arrayschema as such:
this.items = this.items.filter(item => item.active)
This is not broadcasted back to the client for some reason.
Is there a better way to remove a single item from an ArraySchema?
thanks in advance
-
Looks like filter has a TODO down there in:
https://github.com/colyseus/schema/blob/master/src/types/ArraySchema.ts
@endel is there an issue open I could take on to fix this?