1.5.4 • Published 2 years ago

tabapi-client v1.5.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

TABControl API Client

To use tabapi client in a Node.js project:

npm install tabapi-client --save

tabapi-client also comes with TypeScript definitions.

Example

This example is a Node.js TypeScript example using ES2015 js target.

import * as tabapi from 'tabapi-client';

async function main() {
    try {
        var session = await tabapi.connect('ws://localhost:8080/ws');

        var login = await session.call("com.tabcontrol.api.chat.login", {});
    }
    catch(e){
        console.log(`exception: ${JSON.stringify(e,null,4)}`);
    }
}

main();

Refer to hello-tabapi on GitHub for a more complete example.

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago