@casual-simulation/aux-runtime 4.2.3-alpha.23548940774 → 4.2.3-alpha.23819027415
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": "@casual-simulation/aux-runtime",
|
|
3
|
-
"version": "4.2.3-alpha.
|
|
3
|
+
"version": "4.2.3-alpha.23819027415",
|
|
4
4
|
"description": "Runtime for AUX projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@casual-simulation/aux-common": "^4.2.3-alpha.
|
|
29
|
-
"@casual-simulation/aux-records": "^4.2.3-alpha.
|
|
28
|
+
"@casual-simulation/aux-common": "^4.2.3-alpha.23819027415",
|
|
29
|
+
"@casual-simulation/aux-records": "^4.2.3-alpha.23819027415",
|
|
30
30
|
"@casual-simulation/crypto": "^4.0.5",
|
|
31
31
|
"@casual-simulation/engine262": "0.0.1-4de2170374e22761996e46eb1362f4496ee57f8f",
|
|
32
32
|
"@casual-simulation/error-stack-parser": "^2.0.7",
|
|
@@ -12521,6 +12521,22 @@ export interface SharedDocument extends SubscriptionLike {
|
|
|
12521
12521
|
*/
|
|
12522
12522
|
onClientError: Observable<ClientError>;
|
|
12523
12523
|
|
|
12524
|
+
/**
|
|
12525
|
+
* The events that are emitted when remote clients connect or disconnect from the document.
|
|
12526
|
+
*
|
|
12527
|
+
* When subscribed to, this observable will emit an event whenever a remote client connects or disconnects from the document.
|
|
12528
|
+
* Additionally, the current remote clients will be emitted when the subscription is first made.
|
|
12529
|
+
*/
|
|
12530
|
+
readonly remoteClients: Observable<RemoteClientEvent>;
|
|
12531
|
+
|
|
12532
|
+
/**
|
|
12533
|
+
* The events that are emitted when remote clients connect or disconnect from the document.
|
|
12534
|
+
*
|
|
12535
|
+
* When subscribed to, this observable will emit an event whenever a remote client connects or disconnects from the document.
|
|
12536
|
+
* Notably, the current remote clients will NOT be emitted when the subscription is first made, so this can be used to only listen for future client connections and disconnections.
|
|
12537
|
+
*/
|
|
12538
|
+
readonly remoteClientsRaw: Observable<RemoteClientEvent>;
|
|
12539
|
+
|
|
12524
12540
|
/**
|
|
12525
12541
|
* Tells the document to connect to its backing store.
|
|
12526
12542
|
*/
|
|
@@ -12579,6 +12595,59 @@ export interface SharedDocument extends SubscriptionLike {
|
|
|
12579
12595
|
applyUpdates(updates: string[]): void;
|
|
12580
12596
|
}
|
|
12581
12597
|
|
|
12598
|
+
/**
|
|
12599
|
+
* Information about a connection.
|
|
12600
|
+
*
|
|
12601
|
+
* @dochash types/documents
|
|
12602
|
+
* @docid ConnectionInfo
|
|
12603
|
+
* @docname ConnectionInfo
|
|
12604
|
+
*/
|
|
12605
|
+
export interface ConnectionInfo {
|
|
12606
|
+
/**
|
|
12607
|
+
* The ID of the connection.
|
|
12608
|
+
*/
|
|
12609
|
+
connectionId: string;
|
|
12610
|
+
|
|
12611
|
+
/**
|
|
12612
|
+
* The ID of the session.
|
|
12613
|
+
*/
|
|
12614
|
+
sessionId: string | null;
|
|
12615
|
+
|
|
12616
|
+
/**
|
|
12617
|
+
* The ID of the user that is associated with the connection.
|
|
12618
|
+
*/
|
|
12619
|
+
userId: string | null;
|
|
12620
|
+
}
|
|
12621
|
+
|
|
12622
|
+
/**
|
|
12623
|
+
* Defines an event that is emitted when a remote client connects or disconnects from a shared document.
|
|
12624
|
+
*
|
|
12625
|
+
* @dochash types/documents
|
|
12626
|
+
* @docid RemoteClientEvent
|
|
12627
|
+
* @docname RemoteClientEvent
|
|
12628
|
+
*/
|
|
12629
|
+
export interface RemoteClientEvent {
|
|
12630
|
+
/**
|
|
12631
|
+
* The type of the event.
|
|
12632
|
+
*
|
|
12633
|
+
* "client_connected" is emitted when a new client connects to the document.
|
|
12634
|
+
* "client_disconnected" is emitted when a client disconnects from the document.
|
|
12635
|
+
*/
|
|
12636
|
+
type: 'client_connected' | 'client_disconnected';
|
|
12637
|
+
|
|
12638
|
+
/**
|
|
12639
|
+
* The connection info of the client that connected or disconnected.
|
|
12640
|
+
*/
|
|
12641
|
+
client: ConnectionInfo;
|
|
12642
|
+
|
|
12643
|
+
/**
|
|
12644
|
+
* Whether this event is for the current client.
|
|
12645
|
+
* This will be true when `client.connectionId` is the same as the `configBot.id` and false otherwise.
|
|
12646
|
+
*/
|
|
12647
|
+
isSelf: boolean;
|
|
12648
|
+
}
|
|
12649
|
+
|
|
12650
|
+
|
|
12582
12651
|
export type SharedType = SharedMap | SharedArray | SharedText;
|
|
12583
12652
|
|
|
12584
12653
|
export type SharedTypeChanges =
|