@dcl/protocol 1.0.0-3061598530.commit-f2e0efe → 1.0.0-3063320377.commit-ae865d9
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.
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file maps to the definition in https://rfc.decentraland.org/rfc/RFC-5
|
|
2
|
+
// It is mandatory to also update that RFC when modifying this file
|
|
3
|
+
|
|
4
|
+
syntax = "proto3";
|
|
5
|
+
|
|
6
|
+
package protocol.comms.rfc5;
|
|
7
|
+
|
|
8
|
+
message WsWelcome {
|
|
9
|
+
uint32 alias = 1;
|
|
10
|
+
map<uint32, string> peer_identities = 2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message WsPeerJoin {
|
|
14
|
+
uint32 alias = 1;
|
|
15
|
+
string identity = 2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message WsPeerUpdate {
|
|
19
|
+
uint32 from_alias = 1;
|
|
20
|
+
bytes body = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message WsChallengeRequired {
|
|
24
|
+
string challenge_to_sign = 1;
|
|
25
|
+
bool already_connected = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message WsSignedChallenge {
|
|
29
|
+
string auth_chain_json = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message WsPacket {
|
|
33
|
+
oneof message {
|
|
34
|
+
// direction: server->client
|
|
35
|
+
WsWelcome welcome_message = 1;
|
|
36
|
+
// direction: server->client
|
|
37
|
+
WsPeerJoin peer_join_message = 2;
|
|
38
|
+
// direction: both ways
|
|
39
|
+
WsPeerUpdate peer_update_message = 3;
|
|
40
|
+
// direction: server->client
|
|
41
|
+
WsChallengeRequired challenge_message = 4;
|
|
42
|
+
// direction: client->server
|
|
43
|
+
WsSignedChallenge signed_challenge_for_server = 5;
|
|
44
|
+
}
|
|
45
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-3063320377.commit-ae865d9",
|
|
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": "
|
|
21
|
+
"commit": "ae865d9ba3a3eb6d10dbfd175a56449eb537422e"
|
|
22
22
|
}
|