mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-13 16:04:05 +09:00
Properly close websocket connections.
This commit is contained in:
@@ -59,6 +59,7 @@ export const runPetalsCompletionRequest = async (
|
||||
}
|
||||
chatRequest.updating = false
|
||||
chatRequest.updatingMessage = ''
|
||||
ws.close()
|
||||
})
|
||||
ws.onopen = () => {
|
||||
ws.send(JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user