npm start
index.ts
: main entry point, register an empty room handler and attach@colyseus/monitor
src/rooms/MyRoom.ts
: an empty room handler for you to implement your logicsrc/rooms/schema/MyRoomState.ts
: an empty schema used on your room's state.loadtest/example.ts
: scriptable client for the loadtest tool (seenpm run loadtest
)package.json
:scripts
:npm start
: runsts-node-dev index.ts
npm run loadtest
: runs the@colyseus/loadtest
tool for testing the connection, using theloadtest/example.ts
script.
tsconfig.json
: TypeScript configuration file