Skip to content

Commit

Permalink
Update README.md to reflect the protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen authored and alexjg committed Aug 26, 2024
1 parent 66b09d6 commit a13ffc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/automerge-repo-network-websocket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ Handshake is the following steps:

- Once a connection is established the initiating peer sends a
[join](#join) message with the `senderId` set to the initiating peers ID and
the `protocolVersion` set to "1"
a `supportedProtocolVersions` array containing "1"
- The receiving peer waits until it receives a message from the initiating
peer, if the initiating peer receives a message before sending the join message
the initiating peer SHOULD terminate the connection.
- When the receiving peer receives the join message
- if the `protocolVersion` is not "1" the receiving peer sends an
- if the `supportedProtocolVersions` does not contain "1" the receiving peer sends an
[error](#error) message and terminates the connection
- otherwise
- store the `senderId` as the peer ID of the initiating peer
Expand Down

0 comments on commit a13ffc4

Please sign in to comment.