Skip to content

Latest commit

 

History

History

server

port-of-mars-server

Port Of Mars Digital Version

⚔️ Usage

Structure

  • index.ts: main entry point, register an empty room handler and attach @colyseus/monitor
  • MyRoom.ts: an empty room handler for you to implement your logic
  • loadtest/example.ts: scriptable client for the loadtest tool (see npm run loadtest)
  • package.json:
    • scripts:
      • npm run start: runs ts-node index.ts
      • npm run loadtest: runs the @colyseus/loadtest tool for testing the connection, using the loadtest/example.ts script.
    • npm run load-fixtures: loads test data into the database
    • dependencies:
      • colyseus
      • @colyseus/monitor
      • express
    • devDependencies
      • ts-node
      • typescript
      • @colyseus/loadtest
  • tsconfig.json: TypeScript configuration file

License

MIT