Skip to content

Conversation

@mkrbr
Copy link
Contributor

@mkrbr mkrbr commented Oct 14, 2025

mkrbr added 2 commits October 14, 2025 10:37
Ensures proper handling of WebSocket client re-initialization by
creating a unique client for each user session and token refresh, and removing the client on logout.

Addresses issues with deployment updates not being received due to
incorrect client handling. This change ensures that the WebSocket
connection is properly re-established when the user logs in again and when tokens are refreshed.
mkrbr added 2 commits October 14, 2025 15:09
Replaces the `HttpClientTestingModule` import with `provideHttpClientTesting`
to align with Angular's updated testing practices.

This change ensures compatibility and avoids potential issues
related to the deprecated module.

Fixes AAE-38919
@mkrbr mkrbr requested a review from Copilot October 15, 2025 06:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes WebSocket authentication by making connection parameters dynamic, ensuring the authorization token is refreshed for each connection. This addresses AAE-38919, where deployment updates weren't working without closing the panel.

  • Changed WebSocket connection parameters from static object to function for dynamic token retrieval
  • Updated test imports to use newer Angular HTTP testing providers
  • Reformatted constructor parameters for better readability

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
web-socket.service.ts Made connectionParams dynamic function and improved constructor formatting
web-socket.service.spec.ts Updated to use provideHttpClientTesting() instead of deprecated HttpClientTestingModule

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sonarqubecloud
Copy link

@mkrbr mkrbr merged commit dfc65ae into develop Oct 16, 2025
24 of 26 checks passed
@mkrbr mkrbr deleted the fix/AAE-38919-there-is-no-deployment-update-without-closing-the-panel branch October 16, 2025 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants