humus-old/server/index.js
2019-03-20 15:29:00 -05:00

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);