Skip to content

Commit

Permalink
Merge pull request #886 from snyk/fix/ha-mode-regression-post-refacto…
Browse files Browse the repository at this point in the history
…ring

fix: restore ha mode by adding serverId again post refactoring
  • Loading branch information
aarlaud authored Dec 2, 2024
2 parents 7f22ddf + 7095c12 commit 17d84c5
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 17d84c5

Please sign in to comment.