@automerge/automerge-repo-network-websocket 2.0.0-alpha.1 → 2.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -27,12 +27,12 @@ Handshake is the following steps:
27
27
 
28
28
  - Once a connection is established the initiating peer sends a
29
29
  [join](#join) message with the `senderId` set to the initiating peers ID and
30
- the `protocolVersion` set to "1"
30
+ a `supportedProtocolVersions` array containing "1"
31
31
  - The receiving peer waits until it receives a message from the initiating
32
32
  peer, if the initiating peer receives a message before sending the join message
33
33
  the initiating peer SHOULD terminate the connection.
34
34
  - When the receiving peer receives the join message
35
- - if the `protocolVersion` is not "1" the receiving peer sends an
35
+ - if the `supportedProtocolVersions` does not contain "1" the receiving peer sends an
36
36
  [error](#error) message and terminates the connection
37
37
  - otherwise
38
38
  - store the `senderId` as the peer ID of the initiating peer
@@ -119,7 +119,7 @@ Sent by the initiating peer in the [handshake](#handshake) phase.
119
119
  {
120
120
  type: "join",
121
121
  senderId: peer_id,
122
- supportedProtocolVersions: protocol_version
122
+ supportedProtocolVersions: [protocol_version]
123
123
  ? metadata: peer_metadata,
124
124
  }
125
125
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automerge/automerge-repo-network-websocket",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.12",
4
4
  "description": "isomorphic node/browser Websocket network adapter for Automerge Repo",
5
5
  "repository": "https://github.com/automerge/automerge-repo/tree/master/packages/automerge-repo-network-websocket",
6
6
  "author": "Peter van Hardenberg <pvh@pvh.ca>",
@@ -13,7 +13,7 @@
13
13
  "test": "vitest"
14
14
  },
15
15
  "dependencies": {
16
- "@automerge/automerge-repo": "2.0.0-alpha.1",
16
+ "@automerge/automerge-repo": "2.0.0-alpha.12",
17
17
  "cbor-x": "^1.3.0",
18
18
  "debug": "^4.3.4",
19
19
  "eventemitter3": "^5.0.1",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "86421aba21c8037b916ee93f962df1c121fef52b"
34
+ "gitHead": "8b016e42d2518ebb11eb148f52b9fb9a0b4467ff"
35
35
  }