@dcl/protocol 1.0.0-3548510624.commit-7609438 → 1.0.0-3583035976.commit-35d616d
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.
|
@@ -11,6 +11,7 @@ export interface AboutResponse {
|
|
|
11
11
|
comms: AboutResponse_CommsInfo | undefined;
|
|
12
12
|
lambdas: AboutResponse_LambdasInfo | undefined;
|
|
13
13
|
bff?: AboutResponse_BffInfo | undefined;
|
|
14
|
+
acceptingUsers: boolean;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export interface AboutResponse_MinimapConfiguration {
|
|
@@ -90,6 +91,7 @@ function createBaseAboutResponse(): AboutResponse {
|
|
|
90
91
|
comms: undefined,
|
|
91
92
|
lambdas: undefined,
|
|
92
93
|
bff: undefined,
|
|
94
|
+
acceptingUsers: false,
|
|
93
95
|
};
|
|
94
96
|
}
|
|
95
97
|
|
|
@@ -113,6 +115,9 @@ export const AboutResponse = {
|
|
|
113
115
|
if (message.bff !== undefined) {
|
|
114
116
|
AboutResponse_BffInfo.encode(message.bff, writer.uint32(50).fork()).ldelim();
|
|
115
117
|
}
|
|
118
|
+
if (message.acceptingUsers === true) {
|
|
119
|
+
writer.uint32(56).bool(message.acceptingUsers);
|
|
120
|
+
}
|
|
116
121
|
return writer;
|
|
117
122
|
},
|
|
118
123
|
|
|
@@ -141,6 +146,9 @@ export const AboutResponse = {
|
|
|
141
146
|
case 6:
|
|
142
147
|
message.bff = AboutResponse_BffInfo.decode(reader, reader.uint32());
|
|
143
148
|
break;
|
|
149
|
+
case 7:
|
|
150
|
+
message.acceptingUsers = reader.bool();
|
|
151
|
+
break;
|
|
144
152
|
default:
|
|
145
153
|
reader.skipType(tag & 7);
|
|
146
154
|
break;
|
|
@@ -159,6 +167,7 @@ export const AboutResponse = {
|
|
|
159
167
|
comms: isSet(object.comms) ? AboutResponse_CommsInfo.fromJSON(object.comms) : undefined,
|
|
160
168
|
lambdas: isSet(object.lambdas) ? AboutResponse_LambdasInfo.fromJSON(object.lambdas) : undefined,
|
|
161
169
|
bff: isSet(object.bff) ? AboutResponse_BffInfo.fromJSON(object.bff) : undefined,
|
|
170
|
+
acceptingUsers: isSet(object.acceptingUsers) ? Boolean(object.acceptingUsers) : false,
|
|
162
171
|
};
|
|
163
172
|
},
|
|
164
173
|
|
|
@@ -175,6 +184,7 @@ export const AboutResponse = {
|
|
|
175
184
|
message.lambdas !== undefined &&
|
|
176
185
|
(obj.lambdas = message.lambdas ? AboutResponse_LambdasInfo.toJSON(message.lambdas) : undefined);
|
|
177
186
|
message.bff !== undefined && (obj.bff = message.bff ? AboutResponse_BffInfo.toJSON(message.bff) : undefined);
|
|
187
|
+
message.acceptingUsers !== undefined && (obj.acceptingUsers = message.acceptingUsers);
|
|
178
188
|
return obj;
|
|
179
189
|
},
|
|
180
190
|
|
|
@@ -196,6 +206,7 @@ export const AboutResponse = {
|
|
|
196
206
|
message.bff = (object.bff !== undefined && object.bff !== null)
|
|
197
207
|
? AboutResponse_BffInfo.fromPartial(object.bff)
|
|
198
208
|
: undefined;
|
|
209
|
+
message.acceptingUsers = object.acceptingUsers ?? false;
|
|
199
210
|
return message;
|
|
200
211
|
},
|
|
201
212
|
};
|
|
@@ -60,9 +60,11 @@ export interface WsIdentification {
|
|
|
60
60
|
/**
|
|
61
61
|
* This message is received by the peers when the same address logs in in a
|
|
62
62
|
* different session. It should signal that the client should be shut down and not
|
|
63
|
-
* retry any new comms connection.
|
|
63
|
+
* retry any new comms connection. It can also be used to reject new users joining when
|
|
64
|
+
* the room capacity has been reached.
|
|
64
65
|
*/
|
|
65
66
|
export interface WsKicked {
|
|
67
|
+
reason: string;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
export interface WsPacket {
|
|
@@ -539,11 +541,14 @@ export const WsIdentification = {
|
|
|
539
541
|
};
|
|
540
542
|
|
|
541
543
|
function createBaseWsKicked(): WsKicked {
|
|
542
|
-
return {};
|
|
544
|
+
return { reason: "" };
|
|
543
545
|
}
|
|
544
546
|
|
|
545
547
|
export const WsKicked = {
|
|
546
|
-
encode(
|
|
548
|
+
encode(message: WsKicked, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
549
|
+
if (message.reason !== "") {
|
|
550
|
+
writer.uint32(10).string(message.reason);
|
|
551
|
+
}
|
|
547
552
|
return writer;
|
|
548
553
|
},
|
|
549
554
|
|
|
@@ -554,6 +559,9 @@ export const WsKicked = {
|
|
|
554
559
|
while (reader.pos < end) {
|
|
555
560
|
const tag = reader.uint32();
|
|
556
561
|
switch (tag >>> 3) {
|
|
562
|
+
case 1:
|
|
563
|
+
message.reason = reader.string();
|
|
564
|
+
break;
|
|
557
565
|
default:
|
|
558
566
|
reader.skipType(tag & 7);
|
|
559
567
|
break;
|
|
@@ -562,17 +570,19 @@ export const WsKicked = {
|
|
|
562
570
|
return message;
|
|
563
571
|
},
|
|
564
572
|
|
|
565
|
-
fromJSON(
|
|
566
|
-
return {};
|
|
573
|
+
fromJSON(object: any): WsKicked {
|
|
574
|
+
return { reason: isSet(object.reason) ? String(object.reason) : "" };
|
|
567
575
|
},
|
|
568
576
|
|
|
569
|
-
toJSON(
|
|
577
|
+
toJSON(message: WsKicked): unknown {
|
|
570
578
|
const obj: any = {};
|
|
579
|
+
message.reason !== undefined && (obj.reason = message.reason);
|
|
571
580
|
return obj;
|
|
572
581
|
},
|
|
573
582
|
|
|
574
|
-
fromPartial<I extends Exact<DeepPartial<WsKicked>, I>>(
|
|
583
|
+
fromPartial<I extends Exact<DeepPartial<WsKicked>, I>>(object: I): WsKicked {
|
|
575
584
|
const message = createBaseWsKicked();
|
|
585
|
+
message.reason = object.reason ?? "";
|
|
576
586
|
return message;
|
|
577
587
|
},
|
|
578
588
|
};
|
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-3583035976.commit-35d616d",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"out-ts",
|
|
26
26
|
"public"
|
|
27
27
|
],
|
|
28
|
-
"commit": "
|
|
28
|
+
"commit": "35d616d3fa8419ddd059e439c9e2137cd7441c88"
|
|
29
29
|
}
|
|
@@ -68,9 +68,12 @@ message WsIdentification {
|
|
|
68
68
|
/**
|
|
69
69
|
* This message is received by the peers when the same address logs in in a
|
|
70
70
|
* different session. It should signal that the client should be shut down and not
|
|
71
|
-
* retry any new comms connection.
|
|
71
|
+
* retry any new comms connection. It can also be used to reject new users joining when
|
|
72
|
+
* the room capacity has been reached.
|
|
72
73
|
*/
|
|
73
|
-
message WsKicked {
|
|
74
|
+
message WsKicked {
|
|
75
|
+
string reason = 1;
|
|
76
|
+
}
|
|
74
77
|
|
|
75
78
|
message WsPacket {
|
|
76
79
|
oneof message {
|
|
@@ -98,4 +101,4 @@ message WsPacket {
|
|
|
98
101
|
// direction: server->client
|
|
99
102
|
WsKicked peer_kicked = 8;
|
|
100
103
|
}
|
|
101
|
-
}
|
|
104
|
+
}
|