4.1.2-RC13 • Published 6 years ago

braid-client v4.1.2-RC13

Weekly downloads
117
License
-
Repository
gitlab
Last release
6 years ago

braid-client NPM module

Short Example

npm install --save braid-client

followed by something along the lines of:

const Proxy = require('braid-client').Proxy;

const alpha1 = new Proxy({url: 'https://amer-test.cordite.foundation/api/'}, onOpen, onClose, onError, {strictSSL: false})

let saltedDaoName = 'testDao-'+new Date().getTime()

function onOpen() {
    console.log("ooh - worked")
    console.log(new Date().getTime())
    alpha1.dao.daoInfo(saltedDaoName).then(daos => {
        console.log("there were", daos.length, "existing doas with name", saltedDaoName )
        
        return alpha1.dao.createDao.docs()

    }).catch(error => {
        console.error(error)
    })
}

function onClose() {
    console.log("closed")
}

function onError(err) {
    console.error(err)
}

Note that this hits the live cordite alpha.

Features

Allows for the calling of any service method exposed by the end point. If the service method is not available, the module emits a message and URL to the developer console. Clicking on the URL takes the UI developer to the Braid Editor to add the new method the service.

Build

npm run build

4.1.2-RC13

6 years ago

4.1.2-RC12

6 years ago

4.1.2-RC11

6 years ago

4.1.2-RC10

6 years ago

4.1.2-RC09

6 years ago

4.1.2-RC08

6 years ago

4.1.2-RC07

6 years ago

4.1.1-patch-01

6 years ago

4.1.2-RC06

6 years ago

4.1.2-RC05

6 years ago

4.1.2-RC03

6 years ago

4.1.2-RC01

6 years ago

4.1.1

6 years ago

4.1.0

6 years ago

4.1.0-RC01

6 years ago

3.3.4

6 years ago