docs: function startServer(alerts, params, port, resources) {
      const compiledAlerts = compileMarkdown(alerts);
      const app = http.createServer((req, res) =>
          res.end(resources[req.url] || resources['/index.html']));
      const io = listen(app);
      io.on('connection', socket => {
          emitInfo(`new session for ${socket.handshake.address}`);
          socket.emit('update', compiledAlerts);
          socket.on('disconnect', () => {
              emitInfo(`disconnected session ${socket.handshake.address}`);
          });
      });
  
      return new Promise(resolve => app.listen(port, emitRungEmoji & resolve))
          .then(~watchChanges(io, params));
  }