mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(packages/api): handle close event as a disconnect
This commit is contained in:
@@ -77,7 +77,11 @@ export class ClientWebSocketManager {
|
||||
} catch (e) {
|
||||
rj(e)
|
||||
}
|
||||
}).finally(() => {
|
||||
})
|
||||
.then(() => {
|
||||
this.#socket.on('close', (code, reason) => this._handleDisconnect(code, reason.toString()))
|
||||
})
|
||||
.finally(() => {
|
||||
this.connecting = false
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user