public void Start()
        {
            if (!endPoint.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
            {
                throw new Exception("Web socket listen prefixes must start with https://");
            }

            listener = new HttpListener();
            listener.Prefixes.Add(endPoint);
            listener.TimeoutManager.IdleConnection = HalibutLimits.TcpClientReceiveTimeout;
            listener.Start();

            log = logFactory.ForPrefix(endPoint);
            log.Write(EventType.ListenerStarted, "Listener started");
            Task.Run(async() => await Accept());
        }