I'm trying to implement the binance specification for their API using C#. After building the foundation, I tried to reach wss://stream.binance.com:9443/ws/. But each time I use the code below to connect, the application stops abruptly whith no exception.
using CancellationTokenSource tcs = new CancellationTokenSource(TimeSpan.FromSeconds(10));
await _socket.ConnectAsync(BaseUri, tcs.Token).ConfigureAwait(false);
Of course, with BaseUri = wss://stream.binance.com:9443/ws/ and ClientWebSocket _socket . I've seen people talking about a handshake message, but could not find anything on binance doc. I'm i doing something wrong?
UPDATE : How can i at least debug this ? The connect method doesn't return any data...