// using Bts.DataStreamWebApp.Server; // using Microsoft.AspNetCore.Mvc; // [ApiController] // [Route("api/[controller]")] // public class ConfigController : ControllerBase { // private readonly IConfiguration _configuration; // public ConfigController(IConfiguration configuration) { // _configuration = configuration; // } // [HttpGet("websocket")] // public ActionResult GetWebSocketConfig() { // var endpoint = $"{_configuration["Kestrel:Endpoints:Http:Url"]}/ws"; // var webSocketConfig = new DataStreamWebSocketConfig { // Endpoint = endpoint // or Https based on your setup // }; // return Ok(webSocketConfig); // } // }