@genex-ai/multiplayer 0.17.0 → 0.17.6

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/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { ObjectControlOperation as ObjectControlOperation$1, ObjectControlReason as ObjectControlReason$1 } from './protocol.js';
2
+ import { A as AuthSource } from './join-CGoInvUM.js';
3
+ export { C as ColyseusAuth } from './join-CGoInvUM.js';
2
4
  export { ObjectState, PlayerState, RoomState } from './schema.js';
3
5
  import '@colyseus/schema';
4
6
 
@@ -39,18 +41,15 @@ type VoiceJoinOptions = {
39
41
  speakingThreshold?: number;
40
42
  };
41
43
 
42
- type ColyseusAuth = {
43
- embedToken: string;
44
- };
45
- type AuthSource = ColyseusAuth | (() => ColyseusAuth | undefined);
46
44
  type ConnectOptions = {
47
- /** Regional relay urls (pass `getColyseusUrls()`) — the SDK pings each and connects to the
48
- * lowest-latency one; a single entry just connects. */
45
+ /** Regional relay urls (pass `getColyseusUrls()`) — the SDK probes each and connects to the
46
+ * lowest-latency one (a probe that times out falls back, it never fails the join); a single entry
47
+ * just connects. */
49
48
  urls: string[];
50
- /** Cross-region invite override: connect to THIS exact relay url, skipping latency selection. Two
51
- * players are only in the same room if they share one region's relay, so an invitee must follow the
52
- * inviter's region (carried in the invite) instead of picking its own nearest. Omit for normal
53
- * nearest-region play. */
49
+ /** Override: connect to THIS exact relay url, skipping latency selection. Relays that share
50
+ * presence (global matchmaking) seat players together whichever relay each enters through, so
51
+ * this is only needed against relays that do not — there two players meet only on one relay, and
52
+ * an invitee follows the inviter's region. Omit for normal nearest-region play. */
54
53
  url?: string;
55
54
  /** Game id — everyone who passes the same id shares a room; different ids are
56
55
  * fully isolated. Use your project slug (or any stable per-game string). */
@@ -518,8 +517,8 @@ type Matchmaking<TState extends Record<string, unknown>> = {
518
517
  type MatchmakeOptions = {
519
518
  /** Regional relay urls (pass `getColyseusUrls()`) — pings each, connects to the lowest-latency one. */
520
519
  urls: string[];
521
- /** Cross-region override: matchmake on THIS exact relay url, skipping latency selection — an invitee
522
- * follows the inviter's region so both land on the same relay. Omit for normal nearest-region play. */
520
+ /** Override: matchmake on THIS exact relay url, skipping latency selection — only needed against
521
+ * relays that do not share presence (see ConnectOptions.url). Omit for normal nearest-region play. */
523
522
  url?: string;
524
523
  /** Game id (your project slug/id) — isolates this game's matchmaking. */
525
524
  room: string;
@@ -561,4 +560,4 @@ declare function createPrivate<TState extends Record<string, unknown> = never>(o
561
560
  */
562
561
  declare function joinPrivate<TState extends Record<string, unknown> = never>(code: string, opts: MatchmakeOptions): Promise<Matchmaking<TState>>;
563
562
 
564
- export { type AuthSource, type ChatApi, type ChatMessage, type ColyseusAuth, type ConnectOptions, type MatchStatus, type MatchmakeOptions, type Matchmaking, type MatchmakingView, type ObjectControlOperation, type ObjectControlOptions, type ObjectControlReason, type ObjectControlResult, type ObjectView, type PlayerView, type PredictSmoothing, type PrivateMatch, type Session, type SessionOptions, type VoiceApi, type VoiceJoinOptions, type VoiceParticipant, connect, createPrivate, joinPrivate, matchmake };
563
+ export { AuthSource, type ChatApi, type ChatMessage, type ConnectOptions, type MatchStatus, type MatchmakeOptions, type Matchmaking, type MatchmakingView, type ObjectControlOperation, type ObjectControlOptions, type ObjectControlReason, type ObjectControlResult, type ObjectView, type PlayerView, type PredictSmoothing, type PrivateMatch, type Session, type SessionOptions, type VoiceApi, type VoiceJoinOptions, type VoiceParticipant, connect, createPrivate, joinPrivate, matchmake };
package/dist/index.js CHANGED
@@ -3,8 +3,9 @@ import {
3
3
  createPrivate,
4
4
  joinPrivate,
5
5
  matchmake
6
- } from "./chunk-CTDU4IJ5.js";
7
- import "./chunk-C52XFIB6.js";
6
+ } from "./chunk-7QVOIHJF.js";
7
+ import "./chunk-UX3F6YTV.js";
8
+ import "./chunk-ZSWF4VCN.js";
8
9
  export {
9
10
  connect,
10
11
  createPrivate,
@@ -0,0 +1,6 @@
1
+ type ColyseusAuth = {
2
+ embedToken: string;
3
+ };
4
+ type AuthSource = ColyseusAuth | (() => ColyseusAuth | undefined);
5
+
6
+ export type { AuthSource as A, ColyseusAuth as C };