Skip to content

fix: self hosting with non-ssl backend#3103

Merged
mdmohsin7 merged 1 commit intoBasedHardware:mainfrom
neooriginal:main
Oct 3, 2025
Merged

fix: self hosting with non-ssl backend#3103
mdmohsin7 merged 1 commit intoBasedHardware:mainfrom
neooriginal:main

Conversation

@neooriginal
Copy link
Copy Markdown
Collaborator

This pull request updates the way the WebSocket URL is constructed in the TranscriptSegmentSocketService class to more robustly handle both http and https base URLs. This ensures the correct WebSocket protocol (ws:// or wss://) is used regardless of the original API base URL scheme.

WebSocket URL construction improvement:

  • Updated the URL construction logic in transcription_connection.dart to replace both https:// with wss:// and http:// with ws://, ensuring compatibility with different API base URL schemes.

The issue previously was that it would not replace http so transcription would not work.

@neooriginal neooriginal requested a review from beastoin October 3, 2025 11:45
@mdmohsin7 mdmohsin7 merged commit 421e469 into BasedHardware:main Oct 3, 2025
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
This pull request updates the way the WebSocket URL is constructed in
the `TranscriptSegmentSocketService` class to more robustly handle both
`http` and `https` base URLs. This ensures the correct WebSocket
protocol (`ws://` or `wss://`) is used regardless of the original API
base URL scheme.

**WebSocket URL construction improvement:**

* Updated the URL construction logic in `transcription_connection.dart`
to replace both `https://` with `wss://` and `http://` with `ws://`,
ensuring compatibility with different API base URL schemes.

The issue previously was that it would not replace http so transcription
would not work.
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.

2 participants