@base44-preview/sdk 0.8.62-pr.378.dce07b1 → 0.8.62-pr.379.50a3fa2
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.
|
@@ -57,7 +57,7 @@ export type ActorMethods<N extends string> = N extends keyof ActorRegistry ? Act
|
|
|
57
57
|
[K in keyof M]: ActorMethodCall<M[K]>;
|
|
58
58
|
} : UntypedActorMethods : UntypedActorMethods;
|
|
59
59
|
/**
|
|
60
|
-
* Configures the connection that {@linkcode
|
|
60
|
+
* Configures the connection that {@linkcode ActorConnectable.connect | connect()} opens.
|
|
61
61
|
*/
|
|
62
62
|
export interface ActorConnectOptions {
|
|
63
63
|
/**
|
|
@@ -147,7 +147,7 @@ export interface Connection<N extends string = string> {
|
|
|
147
147
|
/**
|
|
148
148
|
* Represents a reference to an actor session, identified by actor name and session ID.
|
|
149
149
|
*
|
|
150
|
-
* Call {@linkcode
|
|
150
|
+
* Call {@linkcode ActorConnectable.connect | connect()} to open the WebSocket and get a [connection](/developers/backend/resources/actors/overview#connections),
|
|
151
151
|
* or call one of the actor's callable methods by name, such as `ref.kick({ userId })`: it runs
|
|
152
152
|
* the actor's method with your identity, even when no client is connected, and resolves to
|
|
153
153
|
* its return value. A refusal rejects with a `Base44Error` carrying the actor's status (404 for
|
|
@@ -233,7 +233,7 @@ export interface ActorClient<N extends string = string> {
|
|
|
233
233
|
*
|
|
234
234
|
* The actors module provides the functionality to:
|
|
235
235
|
*
|
|
236
|
-
* - Manage connections: {@link
|
|
236
|
+
* - Manage connections: {@link ActorConnectable.connect | Open} and {@link Connection.close | close} a WebSocket connection to a session.
|
|
237
237
|
* - Exchange messages: {@link Connection.send | Send} and {@link Connection.subscribe | listen} for messages to and from an actor.
|
|
238
238
|
* - Manage subscriptions: {@link Connection.subscribe | Subscribe} and {@link ActorSubscription.unsubscribe | unsubscribe} from actor messages without closing the connection.
|
|
239
239
|
* - Call methods: run one of an actor's callable methods on a session, without connecting.
|