@dcl/protocol 1.0.0-3055298061.commit-653f46e → 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,71 @@
1
+ // This file maps to the definition in https://rfc.decentraland.org/rfc/RFC-4
2
+ // It is mandatory to also update that RFC when modifying this file
3
+
4
+ syntax = "proto3";
5
+
6
+ package protocol.comms.rfc4;
7
+
8
+ message Packet {
9
+ oneof message {
10
+ Position position = 1;
11
+ AnnounceProfileVersion profile_version = 2;
12
+ ProfileRequest profile_request = 3;
13
+ ProfileResponse profile_response = 4;
14
+ Chat chat = 5;
15
+ Scene scene = 6;
16
+ Voice voice = 7;
17
+ }
18
+ }
19
+
20
+ message Position {
21
+ // command number
22
+ uint32 index = 1;
23
+ // world position
24
+ float position_x = 3;
25
+ float position_y = 4;
26
+ float position_z = 5;
27
+ // quaternion
28
+ float rotation_x = 6;
29
+ float rotation_y = 7;
30
+ float rotation_z = 8;
31
+ float rotation_w = 9;
32
+ }
33
+
34
+ message AnnounceProfileVersion {
35
+ uint32 profile_version = 1;
36
+
37
+ // Extension: optional download_url to fetch the profile from a profile service
38
+ // optional string download_url = 2;
39
+ }
40
+
41
+ message ProfileRequest {
42
+ string address = 4;
43
+ uint32 profile_version = 3;
44
+ }
45
+
46
+ message ProfileResponse {
47
+ string serialized_profile = 1;
48
+
49
+ // Extension: when Lambdas serializes profiles for the RPC, we could extend
50
+ // this format to prevent transmitting the serialized JSON and leverage protobuf
51
+ // directly
52
+ // Profile profile = 2;
53
+ }
54
+
55
+ message Chat {
56
+ string message = 1;
57
+ }
58
+
59
+ message Scene {
60
+ string scene_id = 1;
61
+ bytes data = 2;
62
+ }
63
+
64
+ message Voice {
65
+ bytes encoded_samples = 1;
66
+ uint32 index = 2;
67
+ VoiceCodec codec = 3;
68
+ enum VoiceCodec {
69
+ VoiceCodec_OPUS = 0;
70
+ }
71
+ }
@@ -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-3055298061.commit-653f46e",
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": "653f46e07142fe17b4ac35efa2f1e18fe75aa76e"
21
+ "commit": "ae865d9ba3a3eb6d10dbfd175a56449eb537422e"
22
22
  }