public static TBuilder AddWebSocketServer <TBuilder>(this TBuilder builder, string address,
                                                             Action <SocketSettings> options = null)
            where TBuilder : BaseServiceHostBuilder
        {
            var settings = new SocketSettings();

            options?.Invoke(settings);
            var listener = SocketTools.CreateWebSocketListener(address, settings, builder.LoggerFactory);

            builder.Listeners.Add(listener);
            return(builder);
        }