I am trying to connect a websocket with parameters in URL. Same url I can connect from python without any issues. But from c# I'm getting exception when I do the ConnectAsync Unable to connect to the remote server
_clientWebSocket = new System.Net.WebSockets.Managed.ClientWebSocket();
var marketdatawithT = "wss://abc.com/api/st/co/?
await _clientWebSocket.ConnectAsync(new Uri(marketdatawithT ), CancellationToken.None);
Any help why I'm not able to connect a WebSocketwith url as a parameter from c#? I can connect to endpoint which does not have URL without any issues. I have also tried to encode the url in token like below:
var marketdatawithT = "wss://abc.com/api/st/co/?token=" +
But still see the same issue. Any help will be highly appreciated.