import Server from 'socket.io';
import server from './server';
import { registerHandlers } from './handlers';

const httpServer = server(app => {
  console.log(`Rotonde listening on ${app.get('host')}:${app.get('port')}`);
  const io = new Server(httpServer);
  registerHandlers(io);
});

import Server from 'socket.io';
import server from './server';
import { registerHandlers } from './handlers';
import { installPlugins } from './plugins';

const httpServer = server(async app => {
  console.log(`Rotonde listening on ${app.get('host')}:${app.get('port')}`);
  const io = new Server(httpServer);
  registerHandlers(io);
  try {
    await installPlugins();
  } catch (err) {
    console.error(err);
  }
});

Install plugins when the server starts
Install plugins when the server starts
