Skip to content

Commit 01cf1a3

Browse files
committed
Enable flutter realtime tests
1 parent f6dc423 commit 01cf1a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/languages/flutter/tests.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void main() async {
3232
"wss://demo.appwrite.io/v1"); // change this later to appwrite.io
3333

3434
Realtime realtime = Realtime(client);
35-
// final rtsub = realtime.subscribe(["tests"]);
35+
final rtsub = realtime.subscribe(["tests"]);
3636

3737
await Future.delayed(Duration(seconds: 5));
3838
client.addHeader('Origin', 'http://localhost');
@@ -123,10 +123,10 @@ void main() async {
123123
print(e.message);
124124
}
125125

126-
// rtsub.stream.listen((message) {
127-
// print(message.payload["response"]);
128-
// rtsub.close();
129-
// });
126+
rtsub.stream.listen((message) {
127+
print(message.payload["response"]);
128+
rtsub.close();
129+
});
130130

131131
await Future.delayed(Duration(seconds: 5));
132132

0 commit comments

Comments
 (0)