mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
More socket-io client fixes from PR feedback (#7619)
This commit is contained in:
parent
c1509da9bd
commit
aa4144e10e
1 changed files with 4 additions and 1 deletions
|
|
@ -222,7 +222,9 @@ export class SocketTransport {
|
|||
|
||||
// This is a custom event fired by the server.
|
||||
this.socket.on("auth_error", (error) => {
|
||||
console.error(`[SocketTransport] on (auth_error):`, error)
|
||||
console.error(
|
||||
`[SocketTransport] on(auth_error): ${error instanceof Error ? error.message : String(error)}`,
|
||||
)
|
||||
|
||||
if (connectionTimeout && this.connectionState !== ConnectionState.CONNECTED) {
|
||||
clearTimeout(connectionTimeout)
|
||||
|
|
@ -243,6 +245,7 @@ export class SocketTransport {
|
|||
|
||||
if (this.socket) {
|
||||
this.socket.removeAllListeners()
|
||||
this.socket.io.removeAllListeners()
|
||||
this.socket.disconnect()
|
||||
this.socket = null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue