0.2.38 • Published 8 years ago

thrift-client v0.2.38

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

thrift-client

A nodejs thrift client.

Demo

Client
let ThriftClient = require('thrift-client');

const host = '127.0.0.1'; // Server Host
const port = 3000; // Service Port
const schema = `
  service MyService {
    bool ping()
  }
`; // Service Thrift File Contents

let client = new ThriftClient({ host, port, schema });

client.call('ping').then(result => {
  console.log(result); // true or false
});
Server
const port = 3000;

const schema = `
  service MyService {
    bool ping()
  }
`;

let ThriftClient = require('thrift-client');

let server = ThriftClient.start({ port, schema });

server.register('ping', () => {
  return true;
});
0.2.38

8 years ago

0.2.37

9 years ago

0.2.36

9 years ago

0.2.35

9 years ago

0.2.34

9 years ago

0.2.33

9 years ago

0.2.32

9 years ago

0.2.31

9 years ago

0.2.30

9 years ago

0.2.29

9 years ago

0.2.28

9 years ago

0.2.27

9 years ago

0.2.26

9 years ago

0.2.25

9 years ago

0.2.24

9 years ago

0.2.23

9 years ago

0.2.22

9 years ago

0.2.21

9 years ago

0.2.20

9 years ago

0.2.19

9 years ago

0.2.17

9 years ago

0.2.16

9 years ago

0.2.15

9 years ago

1.2.15

9 years ago

0.2.14

9 years ago

0.2.13

9 years ago

0.2.12

9 years ago

0.2.11

9 years ago

0.2.10

9 years ago

0.2.9

9 years ago

0.2.8

9 years ago

0.2.7

9 years ago

0.2.6

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago