@hytopia.com/server-protocol 1.4.6 → 1.4.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -37,6 +37,7 @@ type WrtcTransportConnect = {
37
37
 
38
38
  export type ConnectionSchema = {
39
39
  i?: string; // connection id | server -> client | on initial WS connection
40
+ k?: boolean // kill connection | server -> client | tells client to close connection & not reconnect
40
41
  c?: WrtcTransportConnect, // wrtc transport connect | client -> server | 2nd wrtc packet
41
42
  ca?: WrtcConnectAck, // wrtc connect ack | server -> client | 3rd wrtc packet
42
43
  d?: WrtcDataChannel[], // wrtc data channels | server <-> client | 1st wrtc packet s->c, 4th wrtc packet c->s
@@ -178,6 +179,7 @@ export const connectionSchema: JSONSchemaType<ConnectionSchema> = {
178
179
  type: 'object',
179
180
  properties: {
180
181
  i: { type: 'string', nullable: true },
182
+ k: { type: 'boolean', nullable: true },
181
183
  c: { ...wrtcTransportConnectSchema, nullable: true },
182
184
  ca: { ...wrtcConnectAckSchema, nullable: true },
183
185
  d: { type: 'array', items: { ...wrtcDataChannelSchema }, nullable: true },
package/schemas/World.ts CHANGED
@@ -11,8 +11,6 @@ export type WorldSchema = {
11
11
  dc?: RgbColorSchema; // directional light color
12
12
  di?: number; // directional light intensity
13
13
  dp?: VectorSchema; // directional light position
14
- fc?: RgbColorSchema; // fog color
15
- fd?: number; // fog density
16
14
  n?: string; // name
17
15
  s?: string; // skyboxUri
18
16
  si?: number; // skybox intensity
@@ -28,8 +26,6 @@ export const worldSchema: JSONSchemaType<WorldSchema> = {
28
26
  dc: { ...rgbColorSchema, nullable: true },
29
27
  di: { type: 'number', nullable: true },
30
28
  dp: { ...vectorSchema, nullable: true },
31
- fc: { ...rgbColorSchema, nullable: true },
32
- fd: { type: 'number', nullable: true },
33
29
  n: { type: 'string', nullable: true },
34
30
  s: { type: 'string', nullable: true },
35
31
  si: { type: 'number', nullable: true },