add socket connection
This commit is contained in:
parent
1de440cedb
commit
9787a9d468
9 changed files with 7302 additions and 9 deletions
|
@ -1,14 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
const socketio = require('socket.io');
|
||||
const GameNet = require('./net');
|
||||
|
||||
class GameServer {
|
||||
constructor() {
|
||||
|
||||
constructor(webServer) {
|
||||
this.net = new GameNet();
|
||||
}
|
||||
|
||||
start() {
|
||||
|
||||
this.net.listen();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue