Marfusios / bitfinex-client-websocket

🛠️ C# client for Bitfinex & Ethfinex websocket API version 2.0
Apache License 2.0
55 stars 38 forks source link

communicator.Start().Wait(); hangs #5

Closed KaiserSozo closed 6 years ago

KaiserSozo commented 6 years ago

Hello!

Here is part of code from WPF app:

BitfinexWebsocketCommunicator communicator = new BitfinexWebsocketCommunicator(BitfinexValues.ApiWebsocketUrl); bitfinexAPI = new BitfinexWebsocketClient(communicator); ticksProcess = TickerProcess; bitfinexAPI.Streams.TickerStream.Subscribe(ticksProcess); bitfinexAPI.Send(new TickerSubscribeRequest("BTC/USD")); communicator.Start().Wait(); bitfinexAPI.Authenticate(apiKey, apiSecret);

KaiserSozo commented 6 years ago

communicator.Start().Wait(); never returns Only The thread 0x4568 has exited with code 0 (0x0). in OUTput

KaiserSozo commented 6 years ago

Because in MainWindow