code: func (w *WSAcceptor) ListenAndServeTLS(cert, key string) {
  	var upgrader = websocket.Upgrader{
  		ReadBufferSize:  1024,
  		WriteBufferSize: 1024,
  	}
  
  	crt, err := tls.LoadX509KeyPair(cert, key)
  	if err != nil {
  		logger.Log.Fatalf("Failed to load x509: %s", err.Error())
  	}
  
  	tlsCfg := &tls.Config{Certificates: []tls.Certificate{crt}}
  	listener, err := tls.Listen("tcp", w.addr, tlsCfg)
  	if err != nil {
  		logger.Log.Fatalf("Failed to listen: %s", err.Error())
  	}
  	w.listener = listener
  	w.serve(&upgrader)
  }
docs: // ListenAndServeTLS listens and serve in the specified addr using tls