namespace bts.websocket_core; using Microsoft.AspNetCore.Builder; public static class WebsocketServerConfigExtensions { public static string Uri(this WebsocketServerConfig config) => $"{config.Scheme}://{config.Host}:{config.Port}"; public static WebSocketOptions get_ws_options(this WebsocketServerConfig config) => new() { KeepAliveInterval = TimeSpan.FromSeconds(config.KeepAliveIntervalSecs) }; }