GithubHelp home page GithubHelp logo

Comments (5)

ridicoulous avatar ridicoulous commented on June 3, 2024

Hello @EricGarnier.
I believe you can use SendAndWait<T>(T obj, TimeSpan timeout, Func<JToken, bool> handler); method at SocketConnection instance

from cryptoexchange.net.

EricGarnier avatar EricGarnier commented on June 3, 2024

Hello @ridicoulous
I rewrite a Task<CallResult<UpdateSubscription<V>>> Subscribe<T, V> in my LiveCoinSocketClient.
You can have a look here :
https://github.com/EricGarnier/LiveCoin.Net/blob/7f77c63ae8c5605f1c738d613df3fc92d35054c9/LiveCoin.Net/LiveCoinSocketClient.cs#L121

I don't see how to use SendAndWait<T>(T obj, TimeSpan timeout, Func<JToken, bool> handler); method at SocketConnection instance.

My point was just that maybe it could be a good idea to integrate this type in CryptoExchange.Net, as it can be a share need.

Eric

from cryptoexchange.net.

JKorf avatar JKorf commented on June 3, 2024

Hi @EricGarnier, I think a goal for libraries based on CryptoExchange.Net should be that they all work in a similar way. I'm not too big of a fan of returning data of the subscribe call. You could maybe consider calling the data handler with the request result if the data is compatible?

from cryptoexchange.net.

EricGarnier avatar EricGarnier commented on June 3, 2024

Hi @JKorf ,
I understand. Not sure it is always possible. I will try.

Thanks.

from cryptoexchange.net.

EricGarnier avatar EricGarnier commented on June 3, 2024

It's OK.
I just publish the package in this way.
Thanks.

from cryptoexchange.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.