code: public synchronized void init(int serverPort)
      {
          if (this.initialized)
          {
              return;
          }
  
          String hostname = null;
  
          try
          {
              hostname = InetAddress.getLocalHost().getHostName();
          }
          catch (UnknownHostException ex)
          {
              logger.warn("Get host failed. Use localhost.", ex);
          }
  
          logger.info("WebSocket server initialize. : HostName={}, Port={}, Path={}, Object={}",
                  hostname, serverPort, "/", this.toString());
          this.server = new Server(hostname, serverPort, "/", null, AmLogServerEndPoint.class);
          try
          {
              this.server.start();
          }
          catch (DeploymentException ex)
          {
              logger.warn("WebSocket server initialize failed. Skip initialize.", ex);
          }
  
          this.initialized = true;
      }
docs: Initialize WebSocket server.
  
  @param serverPort serverPort