Skip to content

Commit 0b3c586

Browse files
committed
add playground
1 parent bc2d603 commit 0b3c586

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Server/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"homepage": "https://github.com/colyseus/create-colyseus#readme",
2020
"devDependencies": {
2121
"@colyseus/loadtest": "^0.15.0",
22+
"@colyseus/playground": "^0.15.0",
2223
"@colyseus/testing": "^0.15.0",
2324
"@types/cors": "^2.8.6",
2425
"@types/express": "^4.17.1",

Server/src/app.config.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import config from "@colyseus/tools";
22

33
import { WebSocketTransport } from "@colyseus/ws-transport";
44
import { monitor } from "@colyseus/monitor";
5+
import { playground } from "@colyseus/playground";
56

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

1516
export default config({
16-
getId: () => "Your Colyseus App",
17-
1817
options: {
1918
// devMode: true,
2019
// driver: new RedisDriver(),
@@ -46,6 +45,9 @@ export default config({
4645
*/
4746
app.use("/colyseus", monitor());
4847

48+
// Bind "playground"
49+
app.use("/playground", playground);
50+
4951
// Bind auth routes
5052
app.use(auth.prefix, auth.routes());
5153
},

0 commit comments

Comments
 (0)