/ws to /asr to distinguish protocol ws:// from endpoint

This commit is contained in:
Quentin Fuxa
2024-12-24 19:36:20 +01:00
parent 50bbd26517
commit 1cea20a42d
3 changed files with 4 additions and 4 deletions

View File

@@ -92,7 +92,7 @@
</div>
<div>
<label for="websocketInput">WebSocket URL:</label>
<input id="websocketInput" type="text" value="ws://localhost:8000/ws" />
<input id="websocketInput" type="text" value="ws://localhost:8000/asr" />
</div>
</div>
</div>
@@ -105,7 +105,7 @@
websocket,
recorder,
chunkDuration = 1000,
websocketUrl = "ws://localhost:8000/ws";
websocketUrl = "ws://localhost:8000/asr";
// Tracks whether the user voluntarily closed the WebSocket
let userClosing = false;