Properly close websocket connections.
This commit is contained in:
parent
bb2a177f22
commit
c473d731ce
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue