@dcl/protocol 1.0.0-3063320377.commit-ae865d9 → 1.0.0-3069678574.commit-63cc310
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.
|
@@ -5,26 +5,53 @@ syntax = "proto3";
|
|
|
5
5
|
|
|
6
6
|
package protocol.comms.rfc5;
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Sent to the clients when the challenge is validated and they are authenticated.
|
|
10
|
+
*/
|
|
8
11
|
message WsWelcome {
|
|
9
12
|
uint32 alias = 1;
|
|
10
13
|
map<uint32, string> peer_identities = 2;
|
|
11
14
|
}
|
|
12
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Sent to the clients when a user connects and their identity is authenticated.
|
|
18
|
+
*/
|
|
13
19
|
message WsPeerJoin {
|
|
14
20
|
uint32 alias = 1;
|
|
15
|
-
string
|
|
21
|
+
string address = 2;
|
|
16
22
|
}
|
|
17
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Sent to the clients when a user gets disconnected.
|
|
26
|
+
*/
|
|
27
|
+
message WsPeerLeave {
|
|
28
|
+
uint32 alias = 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* This is the data package for all user messages.
|
|
33
|
+
*/
|
|
18
34
|
message WsPeerUpdate {
|
|
19
35
|
uint32 from_alias = 1;
|
|
20
36
|
bytes body = 2;
|
|
21
37
|
}
|
|
22
38
|
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Sent to the clients as first message, it contains a challenge string and a
|
|
42
|
+
* hint about if the same address is connected to another island. In such case,
|
|
43
|
+
* after authentication, the server may decide to end the former connection. This
|
|
44
|
+
* hint exists for UX purposes of the explorers for cases like multiple running
|
|
45
|
+
* instances of the explorer.
|
|
46
|
+
*/
|
|
23
47
|
message WsChallengeRequired {
|
|
24
48
|
string challenge_to_sign = 1;
|
|
25
49
|
bool already_connected = 2;
|
|
26
50
|
}
|
|
27
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Response to WsChallengeRequired, signed using the AuthChain mechanism.
|
|
54
|
+
*/
|
|
28
55
|
message WsSignedChallenge {
|
|
29
56
|
string auth_chain_json = 1;
|
|
30
57
|
}
|
|
@@ -41,5 +68,7 @@ message WsPacket {
|
|
|
41
68
|
WsChallengeRequired challenge_message = 4;
|
|
42
69
|
// direction: client->server
|
|
43
70
|
WsSignedChallenge signed_challenge_for_server = 5;
|
|
71
|
+
// direction: server->client
|
|
72
|
+
WsPeerLeave peer_leave_message = 6;
|
|
44
73
|
}
|
|
45
74
|
}
|
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-3069678574.commit-63cc310",
|
|
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": "63cc310f0cdccda0fafb1a138244a5fcee86dd38"
|
|
22
22
|
}
|