Skip to content

Commit e756a44

Browse files
committed
Added more details about message sequencing
1 parent c6cdecc commit e756a44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RFCs/0002-pluggable-discovery.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ All the commands listed in this specification must be implemented in the discove
4848

4949
After startup, the tool will just stay idle waiting for commands. The available commands are: `HELLO`, `START`, `STOP`, `QUIT`, `LIST` and `START_SYNC`.
5050

51-
The discovery must not introduce any delay in the protocol and must respond to all commands as fast as possible.
51+
After each command the client always expect a response from the discovery. The discovery must not introduce any delay and must respond to all commands as fast as possible.
5252

5353
#### HELLO command
5454

@@ -242,6 +242,8 @@ After this message the discoery will send `add` and `remove` event asyncronoushl
242242

243243
The `error` field must be set to `true` and the `message` field should contain a description of the error.
244244

245+
Once in "event" mode, the discovery is allowed to send `add` and `remove` messages asynchronously in realtime, this means that the client must be able to handle these incoming messages at any moment.
246+
245247
The `add` event looks like the following:
246248

247249
```JSON

0 commit comments

Comments
 (0)