@dcl/protocol 1.0.0-3069704311.commit-bc08817 → 1.0.0-3070738382.commit-8ad38d9

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.
@@ -56,19 +56,45 @@ message WsSignedChallenge {
56
56
  string auth_chain_json = 1;
57
57
  }
58
58
 
59
+ /**
60
+ * This is the first message sent by the clients, it us used to identify the client
61
+ * in the server.
62
+ */
63
+ message WsIdentification {
64
+ string address = 1;
65
+ }
66
+
67
+ /**
68
+ * This message is received by the peers when the same address logs in in a
69
+ * different session. It should signal that the client should be shut down and not
70
+ * retry any new comms connection.
71
+ */
72
+ message WsKicked {}
73
+
59
74
  message WsPacket {
60
75
  oneof message {
61
76
  // direction: server->client
62
77
  WsWelcome welcome_message = 1;
78
+
63
79
  // direction: server->client
64
80
  WsPeerJoin peer_join_message = 2;
65
- // direction: both ways
81
+
82
+ // direction: client->(server)->client
66
83
  WsPeerUpdate peer_update_message = 3;
84
+
67
85
  // direction: server->client
68
86
  WsChallengeRequired challenge_message = 4;
87
+
69
88
  // direction: client->server
70
89
  WsSignedChallenge signed_challenge_for_server = 5;
90
+
71
91
  // direction: server->client
72
92
  WsPeerLeave peer_leave_message = 6;
93
+
94
+ // direction: client->server
95
+ WsIdentification peer_identification = 7;
96
+
97
+ // direction: server->client
98
+ WsKicked peer_kicked = 8;
73
99
  }
74
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-3069704311.commit-bc08817",
3
+ "version": "1.0.0-3070738382.commit-8ad38d9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,5 +18,5 @@
18
18
  "ecs",
19
19
  "bff"
20
20
  ],
21
- "commit": "bc08817e4276f32e5879fc939f41f2430db3c4c4"
21
+ "commit": "8ad38d99ed09ba91d67341813b0ec99dd068c0f8"
22
22
  }