Giter Club home page Giter Club logo

Comments (7)

webmaster128 avatar webmaster128 commented on July 17, 2024 1

What would also work is a hybrid, where you use a tendermint socker subscribtion to get notified about new data. When you receive a new transaction, you ignore the amino data and pull via REST.

from cosmjs.

ethanfrey avatar ethanfrey commented on July 17, 2024

Apparently it is not possible to subscribe with the rest server, only via tendermint rpc. Got this response from a lunie wallet dev:

It is not possible to subscribe via the rest server. (frequently requested feature by me :D).

from cosmjs.

webmaster128 avatar webmaster128 commented on July 17, 2024

Let's just do polling like in the Lisk connector. That brought us quite far and is way more stable than websockets.

from cosmjs.

ethanfrey avatar ethanfrey commented on July 17, 2024

Okay

from cosmjs.

ethanfrey avatar ethanfrey commented on July 17, 2024

Yes, I like this. I think we did some of this at iov. Just have a stream of "update happened" from the subscription service. And those events trigger a rest call to get the data.

I can look into proper tendermint subscription queries, but that would also require a second url and connection (maybe optional?)

from cosmjs.

webmaster128 avatar webmaster128 commented on July 17, 2024

For wallet integration we need watchAccount and liveTx. The first one is easy. The second one can be implemented like Lisk. This is horribly inefficient without min/max height search filters, but those will be available soon.

from cosmjs.

webmaster128 avatar webmaster128 commented on July 17, 2024

Closing since the BCP implementation is moving out of here and subscriptions will get their comeback in a couple of weeks when we successfully communicate with Tendermint.

from cosmjs.

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.