diff --git a/src/client.ts b/src/client.ts index 69b4eaab2..81fb47ebb 100644 --- a/src/client.ts +++ b/src/client.ts @@ -2385,7 +2385,7 @@ export class StreamChat< headers: { Authorization: token, 'stream-auth-type': this.getAuthType(), - 'x-stream-client': this.getUserAgent(), + 'X-Stream-Client': this.getUserAgent(), ...options.headers, }, ...options.config, diff --git a/src/connection.ts b/src/connection.ts index 9ae7232ee..a624b9cbb 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -211,7 +211,7 @@ export class StableWSConnection< }; const qs = encodeURIComponent(JSON.stringify(params)); const token = this.tokenManager.getToken(); - return `${this.wsBaseURL}/connect?json=${qs}&api_key=${this.apiKey}&authorization=${token}&stream-auth-type=${this.authType}&x-stream-client=${this.userAgent}`; + return `${this.wsBaseURL}/connect?json=${qs}&api_key=${this.apiKey}&authorization=${token}&stream-auth-type=${this.authType}&X-Stream-Client=${this.userAgent}`; }; /**