Skip to content

Commit f7a2f84

Browse files
author
Alan Christie
committed
fix: Restore prior behaviour
1 parent 8ac3630 commit f7a2f84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,13 @@ class EventStreamPostRequestBody(BaseModel):
7373
# Endpoints for the 'public-facing' event-stream web-socket API ------------------------
7474

7575

76-
@app_public.websocket("/")
77-
async def event_stream(websocket: WebSocket):
76+
@app_public.websocket("/event-stream/{uuid}")
77+
async def event_stream(websocket: WebSocket, uuid: str):
7878
"""The websocket handler for the event-stream.
7979
The actual location is returned to the AS when the web-socket is created
8080
using a POST to /event-stream/."""
8181

8282
# Get the DB record for this UUID...
83-
uuid: str = "P7kna4dF5irHFYJGpNigGu"
8483
_LOGGER.debug("Connect attempt (uuid=%s)...", uuid)
8584
db = sqlite3.connect(_DATABASE_PATH)
8685
cursor = db.cursor()

0 commit comments

Comments
 (0)