diff --git a/src/client.ts b/src/client.ts index e82ef9b16b..858000cdf4 100644 --- a/src/client.ts +++ b/src/client.ts @@ -2,7 +2,7 @@ /* global process */ import axios, { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; -import https from 'https'; +import https from 'node:https'; import WebSocket from 'isomorphic-ws'; import { Channel } from './channel'; @@ -1472,10 +1472,10 @@ export class StreamChat(params, config, retry); } - throw err; + throw error; } }; @@ -107,22 +107,22 @@ export class WSConnectionFallback