jrabek / colyseus-schema-experiments

Trying out colyseus schema

Repository from Github https://github.comjrabek/colyseus-schema-experimentsRepository from Github https://github.comjrabek/colyseus-schema-experiments

colyseus-schema-experiments

Trying out colyseus schema. Specifically for colyseus/schema#115

Usage

npm install
npm start

Experiments

Try changing private doDecode = true; to true or false and change which of the tests you want to run.

server.arrayTest();
// server.filterTest();
// server.mapTest();

Note that depending on the value of doDecode the results are different meaning that the colyseus schema state isn't recreated faithfully after serialization/deserialization.

About

Trying out colyseus schema


Languages

Language:TypeScript 100.0%