feat: add WebSocket proxy route to replace Caddy, update bell hook port to configurable SERVER_PORT

This commit is contained in:
Brian Krabach
2026-03-28 02:11:24 -07:00
parent 74b63033d7
commit a70e8f6f52
3 changed files with 67 additions and 3 deletions
+10
View File
@@ -643,3 +643,13 @@ def test_api_routes_not_shadowed(client):
response = client.get("/api/sessions")
assert response.status_code == 200
assert isinstance(response.json(), list)
def test_terminal_ws_route_exists():
"""The app must have a WebSocket route registered at /terminal/ws."""
from muxplex.main import app
ws_routes = [
r for r in app.routes
if hasattr(r, "path") and r.path == "/terminal/ws"
]
assert len(ws_routes) == 1, "Expected exactly one /terminal/ws route"