Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix: use object for ClientOptions.agent
Browse files Browse the repository at this point in the history
  • Loading branch information
owenpearson committed Apr 4, 2023
1 parent 934840d commit 65e5d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AblyReactHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 65e5d91

Please sign in to comment.