Coder Social home page Coder Social logo

opendsu's Introduction

OpenDSU SDK as API spaces

http :Http client APIs

crypto :Recommended Crypto APIs

anchoring :Anchoring Services

bricking :Bricks Storages

keyssi :KeySSI manipulation

resolver :Obtain DSU Representations using a resolver

handlers :DSU Handlers

notifications :Notifications based on KeySSIs

mq :Working with Message Queues based on KeySSIs

dc :DSU Channels and messaging based on KeySSIs and DSUs

sc :Security Context

bdns :Handling Blockchain Domain Name Service

choreographies :OpenDSU APIs and choreographies

dt :Handling the creation/manipulation of DSU Types

opendsu's People

Contributors

adiganga2002 avatar asaccool avatar bmastahac avatar daniel-visoiu avatar denypatrascu avatar desouler avatar irimiacosmin avatar mastaleru avatar mppub avatar nliappas avatar paiuscatalin avatar paul-isache avatar roxana-irimia avatar salboaie avatar skutner avatar tiagov-pdmfc avatar vladbalmos avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

opendsu's Issues

this.didDocument.readMessage(handler) error handling discussion

I have the following code

listenForMessages(callback) {
         this.didDocument.readMessage((err, decryptedMessage) => {
            if (err) {
                console.error(err);
            } else{
               callback(err, decryptedMessage);
            }
             this.listenForMessages(callback);
        });
}

If I refresh the browser while I have a pending request (from the readMessage call) an error will be thrown and it will enter in an infinite loop of throwing fetch errors like the following:
image

forcing me to return if an error occurs and to not call again the this.didDocument.readMessage method

I'm not sure that this kind of errors, connection errors should be bubbled up to this, or maybe them should be wrapped in error types.

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.