File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ void main() async {
32
32
"wss://demo.appwrite.io/v1" ); // change this later to appwrite.io
33
33
34
34
Realtime realtime = Realtime (client);
35
- // final rtsub = realtime.subscribe(["tests"]);
35
+ final rtsub = realtime.subscribe (["tests" ]);
36
36
37
37
await Future .delayed (Duration (seconds: 5 ));
38
38
client.addHeader ('Origin' , 'http://localhost' );
@@ -123,10 +123,10 @@ void main() async {
123
123
print (e.message);
124
124
}
125
125
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
+ });
130
130
131
131
await Future .delayed (Duration (seconds: 5 ));
132
132
You can’t perform that action at this time.
0 commit comments