import Server from 'socket.io';
import installPlugins from 'rotonde-util-plugin-manager';
import server from './server';
import { getPlugins, getPluginsDirectory } from './config';
import registerHandlers from './handlers';

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

@@ -25,16 +25,83 @@
 et.io';%0A
+import %7B getPluginsDirectory %7D from 'rotonde-util-config-manager';%0A
 import i
@@ -204,29 +204,8 @@
 gins
-, getPluginsDirectory
  %7D f

Fix imports