mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-21 17:15:38 +03:00
deploy: 11db575218
This commit is contained in:
parent
94ffa05d45
commit
60d2dc75f9
4 changed files with 10 additions and 6 deletions
|
@ -174,8 +174,10 @@ messages are added to the DAG. Normally, <code>stream_ordering</code> is an auto
|
|||
incrementing integer, but backfilled events start with <code>stream_ordering=-1</code> and decrement.</p>
|
||||
<hr />
|
||||
<ul>
|
||||
<li><code>/sync</code> returns things in the order they arrive at the server (<code>stream_ordering</code>).</li>
|
||||
<li><code>/messages</code> (and <code>/backfill</code> in the federation API) return them in the order determined by the event graph <code>(topological_ordering, stream_ordering)</code>.</li>
|
||||
<li>Incremental <code>/sync?since=xxx</code> returns things in the order they arrive at the server
|
||||
(<code>stream_ordering</code>).</li>
|
||||
<li>Initial <code>/sync</code>, <code>/messages</code> (and <code>/backfill</code> in the federation API) return them in
|
||||
the order determined by the event graph <code>(topological_ordering, stream_ordering)</code>.</li>
|
||||
</ul>
|
||||
<p>The general idea is that, if you're following a room in real-time (i.e.
|
||||
<code>/sync</code>), you probably want to see the messages as they arrive at your server,
|
||||
|
|
|
@ -19561,8 +19561,10 @@ messages are added to the DAG. Normally, <code>stream_ordering</code> is an auto
|
|||
incrementing integer, but backfilled events start with <code>stream_ordering=-1</code> and decrement.</p>
|
||||
<hr />
|
||||
<ul>
|
||||
<li><code>/sync</code> returns things in the order they arrive at the server (<code>stream_ordering</code>).</li>
|
||||
<li><code>/messages</code> (and <code>/backfill</code> in the federation API) return them in the order determined by the event graph <code>(topological_ordering, stream_ordering)</code>.</li>
|
||||
<li>Incremental <code>/sync?since=xxx</code> returns things in the order they arrive at the server
|
||||
(<code>stream_ordering</code>).</li>
|
||||
<li>Initial <code>/sync</code>, <code>/messages</code> (and <code>/backfill</code> in the federation API) return them in
|
||||
the order determined by the event graph <code>(topological_ordering, stream_ordering)</code>.</li>
|
||||
</ul>
|
||||
<p>The general idea is that, if you're following a room in real-time (i.e.
|
||||
<code>/sync</code>), you probably want to see the messages as they arrive at your server,
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue