Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions client-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function ClientPool(options) {
authKey: this.authKey
};

clientConnectOptions.codecEngine = options.codecEngine || null

this._handleClientError = (event) => {
this.emit('error', event);
};
Expand Down
4 changes: 3 additions & 1 deletion cluster-broker-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function ClusterBrokerClient(broker, options) {
this.mappingEngine = options.mappingEngine || 'skeletonRendezvous';
this.clientPoolSize = options.clientPoolSize || 1;
this.isReady = false;
this.codecEngine = options.codecEngine || null;

if (this.mappingEngine === 'skeletonRendezvous') {
this.mapper = new SkeletonRendezvousMapper(options.mappingEngineOptions);
Expand Down Expand Up @@ -67,7 +68,8 @@ ClusterBrokerClient.prototype.setBrokers = function (sccBrokerURIList) {
let clientPool = new ClientPool({
clientCount: this.clientPoolSize,
targetURI: clientURI,
authKey: this.authKey
authKey: this.authKey,
codecEngine: this.codecEngine
});
brokerClientMap[clientURI] = clientPool;
this.sccBrokerClientPools[clientURI] = clientPool;
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports.attach = function (broker, options) {
authKey: authKey,
mappingEngine: options.mappingEngine,
clientPoolSize: options.clientPoolSize,
codecEngine: options.codecEngine,
});

let retryDelay = options.brokerRetryDelay || DEFAULT_RETRY_DELAY;
Expand Down