Hulkstance

Results 9 comments of Hulkstance

KeepAlive is nothing related, so it's not going to affect it. > A problem with long-lived connections in general is that network equipment such as routers like to drop connections...

@martincostello, thanks for the answer! > I would suggest creating a policy within the execution of the first policy, and execute the listen loop's code through that policy. Effectively, two...

@vaniakurd, the data handlers are synchronous, i.e. you code inside the data handler `await _socketClient.SpotStreams.SubscribeToKlineUpdatesAsync(.., dataHandler => { ... })` is called synchronously as soon as the message comes from...

> I'm using .Net7, and this issue still exists. Here's my project setup: > > ``` > > > > ``` > > Here's my code: > > ```cs >...

ConnectionClosedPrematurely means you're getting disconnected and most likely your connection is unstable. > I noticed that with these settings the socket works more stable: > > socketClientOptions.LogLevel = Microsoft.Extensions.Logging.LogLevel.None; socketClientOptions.LogWriters...

RIP my favorite routers :/

@Marfusios, thank you for your insights! Messages can definitely be processed in parallel because the order of the messages is not important as I've built a wrapper that matches each...

That's because you didn't provider a logger in the `ILogger` collection, e.g. `clientOptions.LogWriters = new List { new ConsoleLogger() };`. You should consider Serilog in opposed to `ConsoleLogger`. I suggest...