Skip to content

Commit 08dcc86

Browse files
committed
update description for subscribe method
1 parent 477a474 commit 08dcc86

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

templates/flutter/lib/src/realtime.dart.twig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import 'client.dart';
88
abstract class Realtime extends Service {
99
factory Realtime(Client client) => createRealtime(client);
1010

11-
/// Channels to subscribe - pass a list of channels to subscribe
11+
/// Subscribes to Appwrite events and returns a `RealtimeSubscription` object, which can be used
12+
/// to listen to events on the channels in realtime and to close the subscription to stop listening.
1213
///
1314
/// Possible channels are:
1415
/// - account
@@ -26,9 +27,6 @@ abstract class Realtime extends Service {
2627
/// - teams.[ID]
2728
/// - memberships
2829
/// - memberships.[ID]
29-
///
30-
/// Returns a `RealtimeSubscription` object, which can be used to listen to events on the channels
31-
/// and to close the subscription to stop listening.
3230
///
3331
/// The sample shows how you could use realtime to listen to changes in a collections.
3432
///

0 commit comments

Comments
 (0)