Describe the bug
I packed an ASP.NET application that consumes HuobiSocketClient into Docker image and hosted it locally using docker-compose. The same code works well outside of Docker. Also, REST API forks well from Docker. The issue is only with WSS connection.
Same approach work successfully with other exchanges from CryptoExchange.Net EXCEPT: Huobi, Kucoin, OKX
To Reproduce
Just try to establish socket connection from Docker container.
Describe the bug I packed an ASP.NET application that consumes
HuobiSocketClient
into Docker image and hosted it locally using docker-compose. The same code works well outside of Docker. Also, REST API forks well from Docker. The issue is only with WSS connection.To Reproduce
Just try to establish socket connection from Docker container.
docker-compose.yml
Some code from
program.cs
Expected behavior Connection should be established successfully.
Debug logging Error while establishing connection:
{"Code":null,"Message":"Can't connect to the server","Data":null}