/**
  * Construct server instance, run http/react server and listen on configured port
  *
  * @param Plugin $plugin
  */
 public function __construct(Plugin $plugin)
 {
     $this->plugin = $plugin;
     $loop = $plugin->getLoop();
     $config = $plugin->getConfig();
     $this->runServer($loop, $config['port']);
 }