10 lines
287 B
JavaScript
10 lines
287 B
JavaScript
import http from 'http';
|
|
import {Server} from '@avocado/server/socket';
|
|
const httpServer = http.createServer();
|
|
// Listen.
|
|
httpServer.listen(8420, '0.0.0.0');
|
|
// Start game server.
|
|
import createGame from './game';
|
|
const avocadoServer = new Server(httpServer);
|
|
createGame(avocadoServer);
|