Skip to content

Commit 5d03533

Browse files
committed
fixup! Update the rest of JS API references to ably-js v2 - Promises and API
1 parent cca966c commit 5d03533

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

content/api/realtime-sdk/types.textile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@ blang[ruby].
4848

4949
<%= partial partial_version('types/_channel_details') %>
5050

51-
blang[jsall,ruby,flutter].
52-
53-
h3(#device-details).
54-
jsall: DeviceDetails
55-
ruby: Ably::Models::DeviceDetails
51+
h3(#device-details).
52+
jsall: DeviceDetails
53+
ruby: Ably::Models::DeviceDetails
5654

55+
blang[jsall,ruby,flutter].
5756
<%= partial partial_version('types/_device_details'), indent: 2, skip_first_indent: true %>
5857

59-
h3(#local-device).
60-
jsall: LocalDevice
61-
ruby: Ably::Models::LocalDevice
58+
h3(#local-device).
59+
default: LocalDevice
60+
ruby: Ably::Models::LocalDevice
6261

63-
<%= partial partial_version('types/_local_device') %>
62+
blang[jsall,ruby,flutter].
63+
<%= partial partial_version('types/_local_device'), indent:2, skip_first_indent: true %>
6464

6565
h3(#error-info).
6666
default: ErrorInfo
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
blang[default].
2-
An extension of "@DeviceDetails@":#device-details. In addition to the <span lang="default">properties</span><span lang="java">members</span><span lang="ruby">attributes</span> of "@DeviceDetails@":#device-details, it includes the following:
3-
4-
blang[jsall].
5-
Contains the device identity token and secret of a device.
1+
<div lang="default">
2+
An extension of "@DeviceDetails@":#device-details. In addition to the <span lang="default">properties</span><span lang="java">members</span><span lang="ruby">attributes</span> of "@DeviceDetails@":#device-details, it includes the following:
3+
</div>
4+
<div lang="jsall">Contains the device identity token and secret of a device.</div>
65

76
h4.
87
default: Properties
@@ -14,17 +13,18 @@ h4.
1413

1514
- deviceIdentityToken := a unique identity token for the device<br>__Type: @String@__
1615

17-
blang[jsall].
18-
h4. Methods
16+
<div lang="jsall">
17+
h4. Methods
1918

20-
h6.
21-
default: listSubscriptions
19+
h6.
20+
jsall: listSubscriptions
2221

23-
bq(definition).
24-
default: listSubscriptions(): Promise<"PaginatedResult":/docs/api/realtime-sdk/types#paginated-result<"PushChannelSubscription":/docs/api/realtime-sdk/types#push-channel-subscription>>
22+
bq(definition).
23+
jsall: listSubscriptions(): Promise<"PaginatedResult":/docs/api/realtime-sdk/types#paginated-result<"PushChannelSubscription":/docs/api/realtime-sdk/types#push-channel-subscription>>
2524

26-
Retrieves push subscriptions active for the local device.
25+
Retrieves push subscriptions active for the local device.
2726

28-
h4. Returns
27+
h4. Returns
2928

30-
Returns a promise. On success, the promise is fulfilled with a "PaginatedResult":/docs/api/realtime-sdk/types#paginated-result object containing an array of "PushChannelSubscription":/docs/api/realtime-sdk/types#push-channel-subscription objects for each push channel subscription active for the local device. On failure, the promise is rejected with an "@ErrorInfo@":#error-info object that details the reason why it was rejected.
29+
Returns a promise. On success, the promise is fulfilled with a "PaginatedResult":/docs/api/realtime-sdk/types#paginated-result object containing an array of "PushChannelSubscription":/docs/api/realtime-sdk/types#push-channel-subscription objects for each push channel subscription active for the local device. On failure, the promise is rejected with an "@ErrorInfo@":#error-info object that details the reason why it was rejected.
30+
</div>

0 commit comments

Comments
 (0)