@vality/woody
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Woody js

Browser-Compatible Node.js Thrift Binary Protocol Connection

Installation

npm install @vality/woody

Usage Example

import connectClient from '@vality/woody';

const host = 'localhost';
const port = '8080';
const path = '/some/path';

// Generated Thrift client
const genClient = {
    /* ... your thrift client ... */
};

// Connection options
const connectOptions = {
    https: true,
    // ... other options ...
};

// Error callback
const errorCb = (err) => {
    console.error('An error occurred:', err);
};

// Create a client connection
const client = connectClient(host, port, path, genClient, connectOptions, errorCb);

// Now you can use 'client' to interact with Thrift service

Readme

Keywords

none

Package Sidebar

Install

npm i @vality/woody

Weekly Downloads

11

Version

0.1.3

License

Apache-2.0

Unpacked Size

851 kB

Total Files

7

Last publish

Collaborators

  • keinasylum
  • vality.devs
  • krickray
  • chchmthrfckr