File tree Expand file tree Collapse file tree 5 files changed +2
-7
lines changed Expand file tree Collapse file tree 5 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " create-colyseus-app" ,
3
- "version" : " 0.15.8 " ,
3
+ "version" : " 0.15.9 " ,
4
4
"description" : " npm init template for bootstrapping an empty Colyseus project" ,
5
5
"main" : " lib/index.js" ,
6
6
"bin" : {
Original file line number Diff line number Diff line change 1
1
import config from "@colyseus/tools" ;
2
2
import { monitor } from "@colyseus/monitor" ;
3
- import { WebSocketTransport } from "@colyseus/ws-transport" ;
4
3
5
4
/**
6
5
* Import your Room files
7
6
*/
8
7
import { MyRoom } from "./rooms/MyRoom.js" ;
9
8
10
9
export default config . default ( {
11
- initializeTransport : ( options ) => new WebSocketTransport ( options ) ,
12
10
13
11
initializeGameServer : ( gameServer ) => {
14
12
/**
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ const { monitor } = require("@colyseus/monitor");
7
7
const { MyRoom } = require ( "./rooms/MyRoom" ) ;
8
8
9
9
module . exports = config ( {
10
- getId : ( ) => "Your Colyseus App" ,
11
10
12
11
initializeGameServer : ( gameServer ) => {
13
12
/**
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import { monitor } from "@colyseus/monitor";
7
7
import { MyRoom } from "./rooms/MyRoom" ;
8
8
9
9
export default config ( {
10
- getId : ( ) => "Your Colyseus App" ,
11
10
12
11
initializeGameServer : ( gameServer ) => {
13
12
/**
Original file line number Diff line number Diff line change 1
- import { Room , Client } from "colyseus" ;
1
+ import { Room , Client } from "@ colyseus/core " ;
2
2
import { MyRoomState } from "./schema/MyRoomState" ;
3
3
4
4
export class MyRoom extends Room < MyRoomState > {
@@ -11,7 +11,6 @@ export class MyRoom extends Room<MyRoomState> {
11
11
// handle "type" message
12
12
//
13
13
} ) ;
14
-
15
14
}
16
15
17
16
onJoin ( client : Client , options : any ) {
You can’t perform that action at this time.
0 commit comments