Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit ea86b6a

Browse files
Merge pull request #62 from 2002Bishwajeet/patch-2
Fixed a small syntax error in Realtime Section for Flutter
2 parents ab4f133 + d5d0275 commit ea86b6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/docs/realtime.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ unsubscribe();</code></pre>
200200
<div class="ide margin-bottom" data-lang="dart" data-lang-label="Flutter SDK">
201201
<pre class="line-numbers"><code class="prism language-dart" data-prism>final client = Client();
202202
final realtime = Realtime(client);
203-
final subscription = realtime.subscribe('files');
203+
final subscription = realtime.subscribe(['files']);
204204

205205
subscription.stream.listen((response) {
206206
// Callback will be executed on changes for all files.
@@ -370,4 +370,4 @@ client.setEndpointRealtime('[ENDPOINT]')</code></pre>
370370
<p>Nested Documents will not trigger events related to their parent documents. Meaning, updates to a child document - will not trigger an event for the parent document. But it will trigger an event for the child document itself.</p>
371371

372372
<h3>Server-Side?</h3>
373-
<p>We currently are not offering access to realtime with Server SDKs and an API key.</p>
373+
<p>We currently are not offering access to realtime with Server SDKs and an API key.</p>

0 commit comments

Comments
 (0)