Skip to content

Commit b7f5b03

Browse files
THRIFT-5849: Expose createClient in browser version of nodejs package
`createClient` is exposed in a nodejs context, but not for browsers. Even though this is the same function as `createWsClient`, `createHttpClient`, etc, it seems odd to use these for custom connection types. Moreover, it is beneficial for the browser and nodejs interface to be as similar as possible.
1 parent a630739 commit b7f5b03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/nodejs/lib/thrift/browser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ exports.OhosConnection = ohosConnection.OhosConnection;
3333
exports.createOhosConnection = ohosConnection.createOhosConnection;
3434
exports.createOhosClient = ohosConnection.createOhosClient;
3535

36+
exports.createClient = require('./create_client');
37+
3638
exports.Int64 = require('node-int64');
3739
exports.Q = require('q');
3840

0 commit comments

Comments
 (0)