mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #13364] [MERGED] refactor: hiding websocket initalization behind authentication #9964
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13364
Author: @shcodenick
Created: 4/30/2025
Status: ✅ Merged
Merged: 4/30/2025
Merged by: @tjbck
Base:
dev← Head:websocket-behind-auth📝 Commits (1)
4c81b6ehiding websocket initalization behind authentication📊 Changes
5 files changed (+66 additions, -50 deletions)
View changed files
📝
backend/open_webui/routers/auths.py(+1 -1)📝
backend/open_webui/socket/main.py(+3 -0)➕
src/lib/utils/websocket.ts(+56 -0)📝
src/routes/+layout.svelte(+2 -49)📝
src/routes/auth/+page.svelte(+4 -0)📄 Description
Pull Request Checklist
discussion #12850
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
n/a
Changed
Deprecated
n/a
Removed
n/a
Fixed
n/a
Security
n/a
Breaking Changes
Additional Information
Originally the motivation was to hide user-list events from not-logged users, these are no longer visible in the console log but still the websocket connection should be started only after user enters the app (logs in).
Screenshots or Videos
n/a
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the CONTRIBUTOR_LICENSE_AGREEMENT, and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.