Skip to content

Commit

Permalink
THRIFT-5849: Expose createClient in browser version of nodejs package
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
cameron-martin authored and Jens-G committed Feb 8, 2025
1 parent 7fe4bf5 commit 0941aec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/nodejs/lib/thrift/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ exports.OhosConnection = ohosConnection.OhosConnection;
exports.createOhosConnection = ohosConnection.createOhosConnection;
exports.createOhosClient = ohosConnection.createOhosClient;

exports.createClient = require('./create_client');

exports.Int64 = require('node-int64');
exports.Q = require('q');

Expand Down

0 comments on commit 0941aec

Please sign in to comment.