@hydranium/protocol 1.0.0-next.10 → 1.0.0-next.104
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/README.md +35 -1
- package/lib/client/data-connection.d.ts +152 -0
- package/lib/client/data-connection.d.ts.map +1 -0
- package/lib/client/data-connection.js +214 -0
- package/lib/client/data-connection.js.map +1 -0
- package/lib/client/data-events.d.ts +9 -1
- package/lib/client/data-events.d.ts.map +1 -1
- package/lib/client/data-events.js +14 -0
- package/lib/client/data-events.js.map +1 -1
- package/lib/client/data-port.d.ts +17 -22
- package/lib/client/data-port.d.ts.map +1 -1
- package/lib/client/data-session.d.ts +154 -76
- package/lib/client/data-session.d.ts.map +1 -1
- package/lib/client/data-session.js +194 -109
- package/lib/client/data-session.js.map +1 -1
- package/lib/client/index.d.ts +10 -7
- package/lib/client/index.d.ts.map +1 -1
- package/lib/client/index.js +10 -7
- package/lib/client/index.js.map +1 -1
- package/lib/client/message-relay.d.ts +8 -2
- package/lib/client/message-relay.d.ts.map +1 -1
- package/lib/client/message-relay.js +10 -4
- package/lib/client/message-relay.js.map +1 -1
- package/lib/client/rpc-connection.d.ts +143 -0
- package/lib/client/rpc-connection.d.ts.map +1 -0
- package/lib/client/rpc-connection.js +171 -0
- package/lib/client/rpc-connection.js.map +1 -0
- package/lib/client-ids.d.ts +41 -0
- package/lib/client-ids.d.ts.map +1 -0
- package/lib/client-ids.js +44 -0
- package/lib/client-ids.js.map +1 -0
- package/lib/data/data-protocol-methods.d.ts +2 -2
- package/lib/data/data-protocol-methods.d.ts.map +1 -1
- package/lib/data/data-protocol-methods.js +6 -1
- package/lib/data/data-protocol-methods.js.map +1 -1
- package/lib/data/data-server-protocol.d.ts +35 -2
- package/lib/data/data-server-protocol.d.ts.map +1 -1
- package/lib/data/events.d.ts +70 -3
- package/lib/data/events.d.ts.map +1 -1
- package/lib/errors.d.ts +28 -11
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +35 -17
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/latency-collector.d.ts +8 -4
- package/lib/latency-collector.d.ts.map +1 -1
- package/lib/latency-collector.js.map +1 -1
- package/lib/messages/index.d.ts +28 -0
- package/lib/messages/index.d.ts.map +1 -0
- package/lib/messages/index.js +52 -0
- package/lib/messages/index.js.map +1 -0
- package/lib/messages/primitives.d.ts +141 -0
- package/lib/messages/primitives.d.ts.map +1 -0
- package/lib/messages/primitives.js +138 -0
- package/lib/messages/primitives.js.map +1 -0
- package/lib/model-server.d.ts +27 -10
- package/lib/model-server.d.ts.map +1 -1
- package/lib/model-server.js +4 -2
- package/lib/model-server.js.map +1 -1
- package/lib/model-service/args.d.ts +14 -13
- package/lib/model-service/args.d.ts.map +1 -1
- package/lib/model-service/based-on.d.ts +55 -0
- package/lib/model-service/based-on.d.ts.map +1 -0
- package/lib/model-service/based-on.js +34 -0
- package/lib/model-service/based-on.js.map +1 -0
- package/lib/model-service/index.d.ts +1 -0
- package/lib/model-service/index.d.ts.map +1 -1
- package/lib/model-service/index.js +1 -0
- package/lib/model-service/index.js.map +1 -1
- package/lib/profile-session.d.ts +8 -4
- package/lib/profile-session.d.ts.map +1 -1
- package/lib/profile-session.js.map +1 -1
- package/lib/rpc/bind-rpc-methods.d.ts +29 -3
- package/lib/rpc/bind-rpc-methods.d.ts.map +1 -1
- package/lib/rpc/bind-rpc-methods.js +22 -3
- package/lib/rpc/bind-rpc-methods.js.map +1 -1
- package/lib/rpc/create-rpc-proxy.d.ts +7 -0
- package/lib/rpc/create-rpc-proxy.d.ts.map +1 -1
- package/lib/rpc/create-rpc-proxy.js +6 -1
- package/lib/rpc/create-rpc-proxy.js.map +1 -1
- package/lib/testing/catalogue-audit.d.ts +80 -0
- package/lib/testing/catalogue-audit.d.ts.map +1 -0
- package/lib/testing/catalogue-audit.js +94 -0
- package/lib/testing/catalogue-audit.js.map +1 -0
- package/lib/testing/data-doubles.d.ts +11 -12
- package/lib/testing/data-doubles.d.ts.map +1 -1
- package/lib/testing/data-doubles.js +14 -5
- package/lib/testing/data-doubles.js.map +1 -1
- package/lib/testing/index.d.ts +1 -0
- package/lib/testing/index.d.ts.map +1 -1
- package/lib/testing/index.js +4 -1
- package/lib/testing/index.js.map +1 -1
- package/lib/transfer-diagnostic.d.ts +33 -0
- package/lib/transfer-diagnostic.d.ts.map +1 -1
- package/lib/transfer-diagnostic.js +23 -0
- package/lib/transfer-diagnostic.js.map +1 -1
- package/lib/transfer-document.d.ts +15 -5
- package/lib/transfer-document.d.ts.map +1 -1
- package/lib/transfer-document.js +14 -1
- package/lib/transfer-document.js.map +1 -1
- package/package.json +11 -2
- package/src/client/data-connection.ts +266 -0
- package/src/client/data-events.ts +24 -1
- package/src/client/data-port.ts +17 -23
- package/src/client/data-session.ts +279 -131
- package/src/client/index.ts +10 -7
- package/src/client/message-relay.ts +28 -6
- package/src/client/rpc-connection.ts +235 -0
- package/src/client-ids.ts +45 -0
- package/src/data/data-protocol-methods.ts +6 -3
- package/src/data/data-server-protocol.ts +46 -2
- package/src/data/events.ts +74 -3
- package/src/errors.ts +41 -19
- package/src/index.ts +5 -0
- package/src/latency-collector.ts +8 -3
- package/src/messages/index.ts +35 -0
- package/src/messages/primitives.ts +215 -0
- package/src/model-server.ts +30 -11
- package/src/model-service/args.ts +15 -13
- package/src/model-service/based-on.ts +60 -0
- package/src/model-service/index.ts +1 -0
- package/src/profile-session.ts +9 -4
- package/src/rpc/bind-rpc-methods.ts +49 -4
- package/src/rpc/create-rpc-proxy.ts +14 -1
- package/src/testing/catalogue-audit.ts +111 -0
- package/src/testing/data-doubles.ts +33 -17
- package/src/testing/index.ts +4 -1
- package/src/transfer-diagnostic.ts +40 -0
- package/src/transfer-document.ts +22 -6
|
@@ -6,84 +6,121 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SPDX-License-Identifier: MIT
|
|
8
8
|
********************************************************************************/
|
|
9
|
-
import type {
|
|
10
|
-
import
|
|
11
|
-
import { type RpcProxy } from '../rpc';
|
|
9
|
+
import type { DataServerProtocol, DiagnosticOf } from '../data';
|
|
10
|
+
import type { RpcProxy } from '../rpc';
|
|
12
11
|
import type { TransferDocument } from '../transfer-document';
|
|
13
12
|
import type { TransferElement } from '../transfer-element';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
/**
|
|
14
|
+
* What one of `TServer`'s document methods takes, minus the `clientId` a
|
|
15
|
+
* {@link DataSession} stamps itself.
|
|
16
|
+
*
|
|
17
|
+
* Read off the SERVER's signature, not off the framework's own arg type: an
|
|
18
|
+
* adopter server widens these, and a wrapper declared against the narrow
|
|
19
|
+
* shape rejects the extra field on a fresh object literal, so that call
|
|
20
|
+
* cannot go through a session at all.
|
|
21
|
+
*/
|
|
22
|
+
export type DataSessionArgs<TMethod extends (args: never) => unknown> = Omit<Parameters<TMethod>[0], 'clientId'>;
|
|
23
|
+
/** Open a document through a session; the session supplies `clientId`. */
|
|
24
|
+
export type DataSessionOpenArgs<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = DataSessionArgs<TServer['openModelDocument']>;
|
|
25
|
+
/** Close a document through a session; the session supplies `clientId`. */
|
|
26
|
+
export type DataSessionCloseArgs<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = DataSessionArgs<TServer['closeModelDocument']>;
|
|
27
|
+
/** Update a document through a session; the session supplies `clientId`. */
|
|
28
|
+
export type DataSessionUpdateArgs<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = DataSessionArgs<TServer['updateModelDocument']>;
|
|
29
|
+
/** Persist a document through a session; the session supplies `clientId`. */
|
|
30
|
+
export type DataSessionSaveArgs<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = DataSessionArgs<TServer['saveModelDocument']>;
|
|
31
|
+
/** The document a session hands back, carrying its server's diagnostic shape. */
|
|
32
|
+
export type DataSessionDocument<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = TransferDocument<TTransfer, DiagnosticOf<TServer>>;
|
|
33
|
+
/**
|
|
34
|
+
* The {@link DataSession.openDocument} calls running against one URI, and
|
|
35
|
+
* whether any of them has taken a server hold that no open has claimed yet.
|
|
36
|
+
*
|
|
37
|
+
* One record per URI rather than per call, because the hold is per
|
|
38
|
+
* `(uri, clientId)`: the server has one, however many opens are in flight, so
|
|
39
|
+
* one flag is the accurate model of it.
|
|
40
|
+
*/
|
|
41
|
+
export interface OpeningDocument {
|
|
42
|
+
/** Opens still running for this URI. The last one out answers for the hold. */
|
|
43
|
+
inFlight: number;
|
|
44
|
+
/** An open succeeded, and no open has since claimed the hold via `openUris`. */
|
|
45
|
+
holdTaken: boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* What a {@link DataSession} needs from the connection that minted it.
|
|
49
|
+
*
|
|
50
|
+
* Narrower than the connection itself so the dependency points one way:
|
|
51
|
+
* `DataConnection` constructs sessions, and nothing here imports it back.
|
|
52
|
+
*/
|
|
53
|
+
export interface DataSessionHost<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>>> {
|
|
54
|
+
connected(): Promise<RpcProxy<TServer>>;
|
|
55
|
+
releaseSession(session: DataSession<TTransfer, TServer>): void;
|
|
17
56
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
57
|
+
* Take over a `(uri, clientId)` hold a session could not release, so it is
|
|
58
|
+
* retried while the wire is still up.
|
|
59
|
+
*
|
|
60
|
+
* A session that has been disposed has already drained and will not read its
|
|
61
|
+
* own tracking again, so a close it issues and the server refuses leaves the
|
|
62
|
+
* hold with nobody to answer for it. The host outlives every session it
|
|
63
|
+
* mints, which is what makes it the one thing that still can.
|
|
64
|
+
*
|
|
65
|
+
* Optional so a host predating it keeps working; without it such a hold falls
|
|
66
|
+
* to the server's connection-close cleanup, which on a shared connection is
|
|
67
|
+
* as long as every other participant's session.
|
|
23
68
|
*/
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
/** One connection generation: its connection, its proxy, and its readiness. */
|
|
27
|
-
interface Generation<TTransfer extends TransferElement> {
|
|
28
|
-
readonly connection: Promise<MessageConnection>;
|
|
29
|
-
readonly server: RpcProxy<DataServerProtocol<TTransfer>>;
|
|
30
|
-
/** Set on first use; the shared readiness gate for this generation. */
|
|
31
|
-
ready?: Promise<void>;
|
|
69
|
+
orphanHold?(uri: string, clientId: string): void;
|
|
32
70
|
}
|
|
33
71
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* adapter.
|
|
72
|
+
* One participant on a data connection: a properties panel, a tree, a
|
|
73
|
+
* form editor.
|
|
37
74
|
*
|
|
38
|
-
*
|
|
75
|
+
* The server keys every hold and watch per `(uri, clientId)`, so the identity
|
|
76
|
+
* belongs to the participant rather than to the wire — several sessions share
|
|
77
|
+
* one connection, and two participants forced to share one identity cannot
|
|
78
|
+
* distinguish each other's writes from their own echoes.
|
|
39
79
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* across concurrent callers. A socket client can connect before the
|
|
44
|
-
* workspace walk finishes, and an early request is then answered correctly
|
|
45
|
-
* from an empty registry, which reads as a broken project tier rather than
|
|
46
|
-
* as a race.
|
|
47
|
-
* 3. **Own the reconnect policy**, by dropping its connection generation when
|
|
48
|
-
* the port disposes and building a fresh one on the next request.
|
|
80
|
+
* Every document operation stamps {@link clientId} itself. A caller that
|
|
81
|
+
* passed its own could pass another participant's, and the server would
|
|
82
|
+
* attribute the write and release the hold accordingly.
|
|
49
83
|
*
|
|
50
|
-
*
|
|
51
|
-
* {@link connected}. The one exception is {@link openDocument}, which exists
|
|
52
|
-
* because the open/watch *order* is silently wrong the other way round — see
|
|
53
|
-
* its own doc.
|
|
84
|
+
* Generic over the transfer root so this file names no grammar.
|
|
54
85
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
86
|
+
* `TServer` is bound to a server answering with ITS OWN diagnostic shape, read
|
|
87
|
+
* back off the parameter being bound. Simplifying that to
|
|
88
|
+
* `DataServerProtocol<TTransfer>` compiles and costs the wrappers their
|
|
89
|
+
* return type: every call through `TServer` would resolve against that looser
|
|
90
|
+
* bound, so an adopter's diagnostics would come back as the framework's and
|
|
91
|
+
* the document would have to be cast on the way out.
|
|
58
92
|
*/
|
|
59
|
-
export declare class DataSession<TTransfer extends TransferElement
|
|
60
|
-
|
|
61
|
-
protected readonly
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
protected generation?: Generation<TTransfer>;
|
|
65
|
-
protected disposed: boolean;
|
|
66
|
-
protected readonly portDisposeListener: {
|
|
67
|
-
dispose(): void;
|
|
68
|
-
};
|
|
69
|
-
constructor(port: DataPort, client: DataClientProtocol<TTransfer>, options?: DataSessionOptions);
|
|
70
|
-
/** The identity every request is made under — the port's, not a second one. */
|
|
71
|
-
get clientId(): string;
|
|
93
|
+
export declare class DataSession<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> {
|
|
94
|
+
readonly clientId: string;
|
|
95
|
+
protected readonly host: DataSessionHost<TTransfer, TServer>;
|
|
96
|
+
/** URIs this session holds open, so {@link dispose} can release exactly those. */
|
|
97
|
+
protected readonly openUris: Set<string>;
|
|
72
98
|
/**
|
|
73
|
-
* The
|
|
74
|
-
*
|
|
75
|
-
* Returns the proxy rather than `void` on purpose. A reconnect replaces the
|
|
76
|
-
* proxy, so a caller that cached one from an earlier call would go on
|
|
77
|
-
* addressing a dead connection with no error — handing it back per call
|
|
78
|
-
* makes the stale reference unrepresentable.
|
|
99
|
+
* The in-flight {@link openDocument} group per URI, while one is running.
|
|
79
100
|
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
101
|
+
* A hold is one per `(uri, clientId)`, and {@link openUris} is filled only
|
|
102
|
+
* once an open has fully returned — so overlapping opens of one URI all read
|
|
103
|
+
* it as unheld and all believe the hold is theirs to release. Tracking the
|
|
104
|
+
* group lets the last of them answer for it once, knowing what the rest did.
|
|
82
105
|
*/
|
|
83
|
-
|
|
106
|
+
protected readonly openingUris: Map<string, OpeningDocument>;
|
|
107
|
+
protected disposed: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Disposed through {@link detach} rather than {@link dispose}, so nothing may
|
|
110
|
+
* be sent. Folding it into {@link disposed} costs {@link openDocument} the
|
|
111
|
+
* distinction, and its close would then go out on a detached session.
|
|
112
|
+
*/
|
|
113
|
+
protected detached: boolean;
|
|
114
|
+
constructor(clientId: string, host: DataSessionHost<TTransfer, TServer>);
|
|
115
|
+
/**
|
|
116
|
+
* The connected, READY server proxy, for protocol methods this session does
|
|
117
|
+
* not wrap — the ones carrying no `clientId`, so no identity can be got
|
|
118
|
+
* wrong through them.
|
|
119
|
+
*/
|
|
120
|
+
connected(): Promise<RpcProxy<TServer>>;
|
|
84
121
|
/**
|
|
85
|
-
* Open `uri` for editing and start watching it, in that order,
|
|
86
|
-
* the opened snapshot.
|
|
122
|
+
* Open `args.uri` for editing and start watching it, in that order,
|
|
123
|
+
* returning the opened snapshot.
|
|
87
124
|
*
|
|
88
125
|
* **The order is the whole reason this method exists.**
|
|
89
126
|
* `watchModelDocument` baselines its dedup fingerprint from the *current*
|
|
@@ -98,32 +135,73 @@ export declare class DataSession<TTransfer extends TransferElement> {
|
|
|
98
135
|
* valid: `open` settles at the integrity landmark, not at validation.
|
|
99
136
|
* Validity arrives asynchronously on `onDocumentUpdated`, or synchronously
|
|
100
137
|
* from `getModelDocument({ includeDiagnostics: true })`.
|
|
138
|
+
*
|
|
139
|
+
* A dispose landing between the two awaits is handled here rather than in
|
|
140
|
+
* {@link dispose}, which cannot release a hold that does not exist yet: it
|
|
141
|
+
* reads {@link openUris}, and this method fills it only once both calls have
|
|
142
|
+
* returned. Left to `dispose`, the hold and its watch outlive the participant
|
|
143
|
+
* and go only when the connection closes.
|
|
144
|
+
*
|
|
145
|
+
* A watch that REJECTS is the same problem arriving by a different door: the
|
|
146
|
+
* open already took a hold, and the caller sees only a failed open, so
|
|
147
|
+
* nothing on its side will ever issue the close.
|
|
148
|
+
*
|
|
149
|
+
* Which call releases it is decided by {@link finishOpening} rather than by
|
|
150
|
+
* the one that failed, because a hold is per `(uri, clientId)` and any number
|
|
151
|
+
* of this session's opens share it. A failing open that closed on its own
|
|
152
|
+
* behalf would revoke a peer's; one that deferred to a peer would leak the
|
|
153
|
+
* hold whenever that peer fails at its OWN open, having then taken no hold to
|
|
154
|
+
* roll back and having no rollback path to run. Making the last open for the
|
|
155
|
+
* URI answer for it is the only rule that holds in both directions.
|
|
101
156
|
*/
|
|
102
|
-
openDocument(
|
|
157
|
+
openDocument(args: DataSessionOpenArgs<TTransfer, TServer>): Promise<DataSessionDocument<TTransfer, TServer>>;
|
|
158
|
+
/** Join (or start) the in-flight group for `uri`, counting this call into it. */
|
|
159
|
+
protected beginOpening(uri: string): OpeningDocument;
|
|
103
160
|
/**
|
|
104
|
-
*
|
|
161
|
+
* Count this call out of the in-flight group for `uri` and, if it was the
|
|
162
|
+
* last one, answer for whatever hold the group took.
|
|
163
|
+
*
|
|
164
|
+
* The last call is the only one that can see the group's whole outcome, which
|
|
165
|
+
* is what makes it the right one to decide. A hold that some open took and no
|
|
166
|
+
* open claimed — `openUris` is the claim — belongs to nobody, and closing it
|
|
167
|
+
* here is the only release that will ever be issued for it.
|
|
168
|
+
*/
|
|
169
|
+
protected finishOpening(uri: string, server: RpcProxy<TServer>): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* Close `args.uri`. The server unwatches implicitly, so this is the dual of
|
|
105
172
|
* {@link openDocument} and needs no separate unwatch.
|
|
106
173
|
*/
|
|
107
|
-
closeDocument(
|
|
174
|
+
closeDocument(args: DataSessionCloseArgs<TTransfer, TServer>): Promise<void>;
|
|
175
|
+
/** Write `args.model` back as this session. */
|
|
176
|
+
updateDocument(args: DataSessionUpdateArgs<TTransfer, TServer>): Promise<DataSessionDocument<TTransfer, TServer>>;
|
|
177
|
+
/** Persist `args.model` to disk as this session. */
|
|
178
|
+
saveDocument(args: DataSessionSaveArgs<TTransfer, TServer>): Promise<DataSessionDocument<TTransfer, TServer>>;
|
|
108
179
|
/**
|
|
109
|
-
* Whether `
|
|
180
|
+
* Whether `sourceClientId` identifies this session's own write.
|
|
110
181
|
*
|
|
111
182
|
* Every watcher needs this and the check is one comparison, so getting it
|
|
112
183
|
* wrong is cheap to do and expensive to find: an unfiltered echo looks
|
|
113
184
|
* exactly like a concurrent third-party edit.
|
|
114
185
|
*/
|
|
115
186
|
isOwnEcho(sourceClientId: string): boolean;
|
|
116
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* Release this session's holds and detach it from the connection.
|
|
189
|
+
* Idempotent, and leaves the connection usable by its other sessions.
|
|
190
|
+
*
|
|
191
|
+
* The closes are fired without being awaited, because a `Disposable` cannot
|
|
192
|
+
* be: a host disposing a widget has nowhere to put the promise. A close
|
|
193
|
+
* that fails is no worse than the leak this exists to prevent, so the
|
|
194
|
+
* rejection is swallowed rather than surfaced from a teardown.
|
|
195
|
+
*/
|
|
117
196
|
dispose(): void;
|
|
118
|
-
/** The live generation, building one if there is none. */
|
|
119
|
-
protected currentGeneration(): Generation<TTransfer>;
|
|
120
|
-
/** Await the connection and the server's startup gate for one generation. */
|
|
121
|
-
protected awaitReady(generation: Generation<TTransfer>): Promise<void>;
|
|
122
197
|
/**
|
|
123
|
-
*
|
|
124
|
-
*
|
|
198
|
+
* Come off the connection because it is going away.
|
|
199
|
+
*
|
|
200
|
+
* Sends no close, unlike {@link dispose}: the server releases every hold on
|
|
201
|
+
* a connection it sees close, and the close would travel over the very
|
|
202
|
+
* connection being disposed.
|
|
125
203
|
*/
|
|
126
|
-
|
|
204
|
+
detach(): void;
|
|
205
|
+
protected assertLive(): void;
|
|
127
206
|
}
|
|
128
|
-
export {};
|
|
129
207
|
//# sourceMappingURL=data-session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-session.d.ts","sourceRoot":"","sources":["../../src/client/data-session.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"data-session.d.ts","sourceRoot":"","sources":["../../src/client/data-session.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,CAAC,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAEjH,0EAA0E;AAC1E,MAAM,MAAM,mBAAmB,CAC5B,SAAS,SAAS,eAAe,EACjC,OAAO,SAAS,kBAAkB,CAAC,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,CAAC,SAAS,CAAC,IACnG,eAAe,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAElD,2EAA2E;AAC3E,MAAM,MAAM,oBAAoB,CAC7B,SAAS,SAAS,eAAe,EACjC,OAAO,SAAS,kBAAkB,CAAC,SAAS,EAAE,YA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