async startup() {
    try {
      // create the server.
      // This line fucks up C8.
      this.runningServer = await this.server.listen(this.port);
      // This too:
      //express().listen(PORT);

      this.em.emit("serverStarted", "Server is started on port " + this.port);

      // set up event handler for shutdown.

      this.em.on("serverShutdown", () => {
        this.shutdown();
      });
    } catch (err) {
      console.warn(err);
      process.exit(1);
    }
  }
// Create an init method to start the server.
Create an init method to start the server.
Create an init method to start the server .
async startup() {
    try {
      this.runningServer = await this.server.listen(this.port);
      this.em.emit("serverStarted", "Server is started on port " + this.port);
      this.em.on("serverShutdown", () => {
        this.shutdown();
      });
    } catch (err) {
      console.warn(err);
      process.exit(1);
    }
  }
async startup ( ) { try { this . runningServer = await this . server . listen ( this . port ) ; this . em . emit ( "serverStarted" , "Server is started on port " + this . port ) ; this . em . on ( "serverShutdown" , ( ) => { this . shutdown ( ) ; } ) ; } catch ( err ) { console . warn ( err ) ; process . exit ( 1 ) ; } }
Create an init method to start the server.
Create an init method to start the server .
// create the server. // This line fucks up C8. // This too: //express().listen(PORT); // set up event handler for shutdown.