Skip to content

Commit c0b5df9

Browse files
committed
Clarify timestamp tuple field and explain relay behavior
1 parent 06ae5ff commit c0b5df9

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

draft-frindell-moq-chat.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,21 @@ track is "chat".
7878
* user-id - the user ID
7979
* device-id - a unique identifier for each device for the user. This allows
8080
the same user to join the chat from multiple devices
81-
* timestamp - the timestamp in seconds when the track started. This allows a
82-
stateless client to start publishing without accidentally
83-
overwriting a previously sent group and object.
81+
* timestamp - the timestamp in seconds when the track started, encoded as a
82+
string. This allows a stateless client to start publishing
83+
without accidentally overwriting a previously sent group and
84+
object.
85+
Note: the protocol will still function so long as each chat
86+
client selects a monotonically increasing number for this field.
87+
Using the common format described here could support future
88+
functionality like pulling chat history.
8489

8590
## Joining the Chat
8691

8792
To join the chat a participant sends a SUBSCRIBE_NAMESPACE message to the relay
88-
with a namespace prefix ("moq-chat", \<id\>) in order to receive all ANNOUNCE
89-
message from each participant in the chat and UNANNOUNCE messages when
90-
participants leave.
93+
with a namespace prefix ("moq-chat", \<id\>). MoQ Relays track the current
94+
state of all announced namespaces and namespace subscriptions, and forward any
95+
matching ANNOUNCE or UNANNOUNCE messages to interested endpoints.
9196

9297
The participant also sends an ANNOUNCE message for their chat track namespace.
9398

0 commit comments

Comments
 (0)