File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 19
19
"homepage" : " https://github.com/colyseus/create-colyseus#readme" ,
20
20
"devDependencies" : {
21
21
"@colyseus/loadtest" : " ^0.15.0" ,
22
+ "@colyseus/playground" : " ^0.15.0" ,
22
23
"@colyseus/testing" : " ^0.15.0" ,
23
24
"@types/cors" : " ^2.8.6" ,
24
25
"@types/express" : " ^4.17.1" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import config from "@colyseus/tools";
2
2
3
3
import { WebSocketTransport } from "@colyseus/ws-transport" ;
4
4
import { monitor } from "@colyseus/monitor" ;
5
+ import { playground } from "@colyseus/playground" ;
5
6
6
7
// import { RedisDriver } from "@colyseus/redis-driver";
7
8
// import { RedisPresence } from "@colyseus/redis-presence";
@@ -13,8 +14,6 @@ import { MyRoom } from "./rooms/MyRoom";
13
14
import auth from "./config/auth" ;
14
15
15
16
export default config ( {
16
- getId : ( ) => "Your Colyseus App" ,
17
-
18
17
options : {
19
18
// devMode: true,
20
19
// driver: new RedisDriver(),
@@ -46,6 +45,9 @@ export default config({
46
45
*/
47
46
app . use ( "/colyseus" , monitor ( ) ) ;
48
47
48
+ // Bind "playground"
49
+ app . use ( "/playground" , playground ) ;
50
+
49
51
// Bind auth routes
50
52
app . use ( auth . prefix , auth . routes ( ) ) ;
51
53
} ,
You can’t perform that action at this time.
0 commit comments