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); }