Skip to content

Commit

Permalink
fix: restore ha mode by adding serverId again post refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
aarlaud committed Dec 2, 2024
1 parent 7f22ddf commit 7095c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/client/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ export const createWebSocket = (
websocket.identifier = identifyingMetadata.identifier;
websocket.supportedIntegrationType =
identifyingMetadata.supportedIntegrationType || '';
websocket.serverId = serverId || '';
websocket.friendlyName = identifyingMetadata.friendlyName || '';
} else {
websocket.identifier = maskToken(identifyingMetadata.identifier);
}
websocket.serverId = serverId || '';
websocket.clientConfig = identifyingMetadata.clientConfig;
websocket.role = identifyingMetadata.role;

Expand Down
4 changes: 1 addition & 3 deletions lib/hybrid-sdk/responseSenders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ export class HybridResponseHandler {
this.logContext,
this.options,
this.connectionIdentifier,
this.options.universalBrokerEnabled
? this.websocketConnectionHandler?.serverId
: this.options.serverId,
this.websocketConnectionHandler?.serverId ?? '',
this.requestMetadata.requestId,
this.websocketConnectionHandler.role,
);
Expand Down

0 comments on commit 7095c12

Please sign in to comment.