Best Practices
Limitations and Best practices
- Each
Schemastructure can hold up to64serialized fields. If you need more fields, use nestedSchemastructures. NaNandInfinityare encoded as0(integer encoding only)nullstrings are encoded as""(both “string” and “cstring” encoding)- Multi-dimensional arrays are not supported. See how to use 1D arrays as multi-dimensional
@colyseus/schemaencoding order is based on field definition order.- Both encoder (server) and decoder (client) must have same schema definition.
- The order of the fields must be the same.
Last updated on