mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-30 05:18:47 -05:00
[PR #5270] [MERGED] fix: socket.io connections failing when websockets are not available #92695
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/5270
Author: @cheahjs
Created: 9/8/2024
Status: ✅ Merged
Merged: 9/9/2024
Merged by: @tjbck
Base:
dev← Head:fix/websocket-take-2📝 Commits (3)
698976afeat: add ENABLE_WEBSOCKET_SUPPORT to force socket.io to ignore websocket upgrades827c419feat: add ENABLE_WEBSOCKET_SUPPORT to force socket.io to ignore websocket upgrades9401f6cfix: workaround socketio upstream bug when websockets are not available📊 Changes
4 files changed (+33 additions, -11 deletions)
View changed files
📝
backend/open_webui/apps/socket/main.py(+8 -1)📝
backend/open_webui/env.py(+4 -0)📝
backend/open_webui/main.py(+18 -0)📝
src/routes/+layout.svelte(+3 -10)📄 Description
Pull Request Checklist
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
ENABLE_WEBSOCKET_SUPPORTenvironment variable for environments where websockets are not available.python-socketiobecause of https://github.com/miguelgrinberg/python-engineio/issues/367🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.