@@ -191,8 +191,8 @@ export class Socket extends Emitter {
|
||||
// Retry with the next transport if the transport is disabled (jsonp: false)
|
||||
try {
|
||||
transport = this.createTransport(transport)
|
||||
} catch (e) {
|
||||
debug("error while creating transport: %s", e)
|
||||
} catch (error: any) {
|
||||
debug("error while creating transport: %s", error)
|
||||
this.transports.shift()
|
||||
this.open()
|
||||
return
|
||||
|
||||
@@ -160,7 +160,7 @@ export class WS extends Transport {
|
||||
} else {
|
||||
this.ws.send(data, opts)
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (error: any) {
|
||||
debug("websocket closed before onclose event")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user