Skip to content

Conversation

t104
Copy link

@t104 t104 commented Aug 24, 2025

Description

This change restricts WebSocket connections to only be active during recording sessions, improving resource management and connection efficiency by preventing unnecessary connections when not recording.

Changes

  • WebSocket connections now start only when recording begins
  • Connections are properly closed when recording stops

Testing

  • Confirmed connection created when starting recording
  • Confirmed no connection attempts when not recording
  • Not answers from the previous recordings are played (This happens in slow network)

- WebSocket now connects to only while audio recording is in progress
- Reduces unnecessary connection and resource usage when not recording
- Disconnecting the WebSocket ensures that AI responses from previous
recordings are not played back
@t104
Copy link
Author

t104 commented Aug 24, 2025

@microsoft-github-policy-service agree

@t104 t104 marked this pull request as ready for review August 25, 2025 00:59
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.

1 participant