From 6fb182bf236c54930a13f0e28560a649b564f6ce Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Tue, 12 Dec 2023 13:43:08 +0000 Subject: [PATCH] Remove space-custom-client Ably-Agent It's no longer needed since a client is always passed to the constructor now. Signed-off-by: Lewis Marshall --- src/Spaces.test.ts | 2 -- src/Spaces.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Spaces.test.ts b/src/Spaces.test.ts index 79941d1a..41d80dc3 100644 --- a/src/Spaces.test.ts +++ b/src/Spaces.test.ts @@ -42,7 +42,6 @@ describe('Spaces', () => { const spaces = new Spaces(client); expect(client.options.agents).toEqual({ spaces: spaces.version, - 'space-custom-client': true, }); }); @@ -54,7 +53,6 @@ describe('Spaces', () => { expect(ablyClient.options.agents).toEqual({ 'some-client': '1.2.3', spaces: spaces.version, - 'space-custom-client': true, }); }); }); diff --git a/src/Spaces.ts b/src/Spaces.ts index 9a5fa006..6117aff1 100644 --- a/src/Spaces.ts +++ b/src/Spaces.ts @@ -50,7 +50,7 @@ class Spaces { } private addAgent(options: { agents?: Record }) { - const agent = { spaces: this.version, 'space-custom-client': true }; + const agent = { spaces: this.version }; options.agents = { ...(options.agents ?? options.agents), ...agent }; }