Skip to content

Commit

Permalink
add playground
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Mar 23, 2024
1 parent bc2d603 commit 0b3c586
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"homepage": "https://github.com/colyseus/create-colyseus#readme",
"devDependencies": {
"@colyseus/loadtest": "^0.15.0",
"@colyseus/playground": "^0.15.0",
"@colyseus/testing": "^0.15.0",
"@types/cors": "^2.8.6",
"@types/express": "^4.17.1",
Expand Down
6 changes: 4 additions & 2 deletions Server/src/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import config from "@colyseus/tools";

import { WebSocketTransport } from "@colyseus/ws-transport";
import { monitor } from "@colyseus/monitor";
import { playground } from "@colyseus/playground";

// import { RedisDriver } from "@colyseus/redis-driver";
// import { RedisPresence } from "@colyseus/redis-presence";
Expand All @@ -13,8 +14,6 @@ import { MyRoom } from "./rooms/MyRoom";
import auth from "./config/auth";

export default config({
getId: () => "Your Colyseus App",

options: {
// devMode: true,
// driver: new RedisDriver(),
Expand Down Expand Up @@ -46,6 +45,9 @@ export default config({
*/
app.use("/colyseus", monitor());

// Bind "playground"
app.use("/playground", playground);

// Bind auth routes
app.use(auth.prefix, auth.routes());
},
Expand Down

0 comments on commit 0b3c586

Please sign in to comment.