Skip to content

Commit

Permalink
Merge pull request #1517 from ably/add-stats-to-rest-gated-functionality
Browse files Browse the repository at this point in the history
Add stats to list of functionality gated off by `Rest` module
  • Loading branch information
lawrence-forooghian authored Nov 28, 2023
2 parents c183041 + f6b834d commit 6f9d7f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export declare const constructPresenceMessage: Types.PresenceMessageStatic['from
*
* - { @link Types.Push | push admin }
* - { @link BaseRealtime.time | retrieving Ably service time }
* - { @link BaseRealtime.stats | retrieving your application’s usage statistics }
* - { @link BaseRealtime.request | making arbitrary REST requests }
* - { @link BaseRealtime.batchPublish | batch publishing of messages }
* - { @link BaseRealtime.batchPresence | batch retrieval of channel presence state }
Expand Down
1 change: 1 addition & 0 deletions test/browser/modules.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ describe('browser/modules', function () {
action: (client) => client.push.admin.publish({ clientId: 'foo' }, { data: { bar: 'baz' } }),
},
{ description: 'call `time()`', action: (client) => client.time() },
{ description: 'call `stats()`', action: (client) => client.stats() },
{ description: 'call `request(...)`', action: (client) => client.request('get', '/channels/channel', 2) },
{
description: 'call `batchPublish(...)`',
Expand Down

0 comments on commit 6f9d7f7

Please sign in to comment.