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); const connectionListener = createGame(); avocadoServer.on('connect', connectionListener);