Skip to content

Commit

Permalink
Added more details about message sequencing
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed May 26, 2021
1 parent c6cdecc commit e756a44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RFCs/0002-pluggable-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ All the commands listed in this specification must be implemented in the discove

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

The discovery must not introduce any delay in the protocol and must respond to all commands as fast as possible.
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.

#### HELLO command

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

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

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.

The `add` event looks like the following:

```JSON
Expand Down

0 comments on commit e756a44

Please sign in to comment.