File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/cloud/src/bridge Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,9 @@ export class SocketTransport {
222
222
223
223
// This is a custom event fired by the server.
224
224
this . socket . on ( "auth_error" , ( error ) => {
225
- console . error ( `[SocketTransport] on (auth_error):` , error )
225
+ console . error (
226
+ `[SocketTransport] on(auth_error): ${ error instanceof Error ? error . message : String ( error ) } ` ,
227
+ )
226
228
227
229
if ( connectionTimeout && this . connectionState !== ConnectionState . CONNECTED ) {
228
230
clearTimeout ( connectionTimeout )
@@ -243,6 +245,7 @@ export class SocketTransport {
243
245
244
246
if ( this . socket ) {
245
247
this . socket . removeAllListeners ( )
248
+ this . socket . io . removeAllListeners ( )
246
249
this . socket . disconnect ( )
247
250
this . socket = null
248
251
}
You can’t perform that action at this time.
0 commit comments