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