From 65e5d915adf33953264d3efdc2af5ce2d9746290 Mon Sep 17 00:00:00 2001 From: Owen Pearson Date: Tue, 4 Apr 2023 14:50:04 +0100 Subject: [PATCH] fix: use object for ClientOptions.agent --- src/AblyReactHooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AblyReactHooks.ts b/src/AblyReactHooks.ts index a5b3481..148b934 100644 --- a/src/AblyReactHooks.ts +++ b/src/AblyReactHooks.ts @@ -16,7 +16,7 @@ export class Realtime extends Ably.Realtime.Promise { } as Types.ClientOptions; } - (options as any).agents = [`react-hooks/${version}`] + (options as any).agents = { 'react-hooks': version }; super(options); }