thrift-client.ts 438 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
import { createHttpClient, HttpConnection } from '@creditkarma/thrift-client';
import * as request from 'request';
import { CoreOptions } from 'request';

import { Client } from '../codegen/common/GameService';

const CONFIG = {
  hostName: 'localhost',
  port: 8045,
};

const thriftClient: Client<CoreOptions> = createHttpClient(Client, CONFIG);

14
// const id: Promise<Number> = thriftClient.createGame(8);
15
16

export class ThriftClient {}