5.0.0-RC17 • Published 3 years ago

@cordite/braid-client v5.0.0-RC17

Weekly downloads
128
License
Apache-2.0
Repository
gitlab
Last release
3 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://alpha-one.cordite.foundation:8080/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

5.0.0-RC17

3 years ago

5.0.0-RC16

4 years ago

5.0.0-RC15

4 years ago

5.0.0-RC13

4 years ago

5.0.0-RC12

4 years ago

5.0.0-RC11

4 years ago

5.0.0-RC10

4 years ago

5.0.0-RC09

4 years ago

5.0.0-RC08

4 years ago

5.0.0-RC07

4 years ago

5.0.0-RC06

4 years ago

5.0.0-RC05

5 years ago

5.0.0-RC04

5 years ago

5.0.0-RC03

5 years ago

5.0.0-RC02

5 years ago

5.0.0-RC01

5 years ago

4.5.3

5 years ago

4.5.2

5 years ago

4.5.1

5 years ago

4.5.0

5 years ago

4.4.1

5 years ago

4.4.0

5 years ago

4.4.0-RC03

5 years ago

4.4.0-RC02

5 years ago

4.4.0-RC01

5 years ago

4.4.0-SNAPSHOT

5 years ago