Skip to content

Commit

Permalink
fix: send ably agent as header in react-hooks time ping
Browse files Browse the repository at this point in the history
  • Loading branch information
owenpearson committed Sep 18, 2023
1 parent 76a5475 commit 8f10637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/react-hooks/src/AblyProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export const AblyProvider = ({ client, children, options, id = 'default' }: Ably
React.useEffect(() => {
if (!hasSentAgent) {
hasSentAgent = true;
realtime.request('GET', '/time', {
agent: `react-hooks-time-ping/${version}`,
realtime.request('GET', '/time', null, null, {
'Ably-Agent': `react-hooks-time-ping/${version}`,
});
}
});
Expand Down

0 comments on commit 8f10637

Please sign in to comment.