summary refs log tree commit diff
path: root/docs/tcp_replication.md
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-16 19:24:50 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-16 19:24:50 +0000
commit4a634efaf8b17ce33e68b126c537aacd560ef5c6 (patch)
tree2771cb2e9b6d34bed1d46477682a522942946955 /docs/tcp_replication.md
parentMerge pull request #6301 from matrix-org/babolivier/msc2326 (diff)
parentdocument the REPLICATE command a bit better (#6305) (diff)
downloadsynapse-4a634efaf8b17ce33e68b126c537aacd560ef5c6.tar.xz
document the REPLICATE command a bit better (#6305)
* commit 'cc6243b4c':
  document the REPLICATE command a bit better (#6305)
Diffstat (limited to 'docs/tcp_replication.md')
-rw-r--r--docs/tcp_replication.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/docs/tcp_replication.md b/docs/tcp_replication.md

index e099d8a87b..ba9e874d07 100644 --- a/docs/tcp_replication.md +++ b/docs/tcp_replication.md
@@ -199,7 +199,20 @@ client (C): #### REPLICATE (C) - Asks the server to replicate a given stream +Asks the server to replicate a given stream. The syntax is: + +``` + REPLICATE <stream_name> <token> +``` + +Where `<token>` may be either: + * a numeric stream_id to stream updates since (exclusive) + * `NOW` to stream all subsequent updates. + +The `<stream_name>` is the name of a replication stream to subscribe +to (see [here](../synapse/replication/tcp/streams/_base.py) for a list +of streams). It can also be `ALL` to subscribe to all known streams, +in which case the `<token>` must be set to `NOW`. #### USER_SYNC (C)