@api.global/typedsocket 7.0.0 → 8.0.0

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.
@@ -6,6 +6,7 @@ type TVirtualStreamEndpoint = plugins.typedrequestInterfaces.TVirtualStreamTrans
6
6
  type TVirtualStreamReceipt = plugins.typedrequestInterfaces.IVirtualStreamReceipt;
7
7
  type TSha256Hasher = ReturnType<typeof plugins.smarthash.createSha256Hasher>;
8
8
  declare const createAuthorizedServerRegistrationSymbol: unique symbol;
9
+ declare const setServerHandshakeReadyCallbackSymbol: unique symbol;
9
10
  interface IDeferred<T> {
10
11
  readonly promise: Promise<T>;
11
12
  readonly settled: boolean;
@@ -34,11 +35,13 @@ interface ITextArrivalStamp {
34
35
  readonly readyAtArrival: boolean;
35
36
  readonly method?: string;
36
37
  readonly correlationId?: string;
38
+ readonly requestInstanceId?: string;
37
39
  readonly phase?: 'request' | 'response';
38
40
  readonly handshake: boolean;
39
41
  }
40
42
  interface IHandshakeAuthority {
41
43
  readonly correlationId: string;
44
+ readonly requestInstanceId: string;
42
45
  readonly sequence: number;
43
46
  }
44
47
  interface IOutboundFrame {
@@ -173,8 +176,10 @@ export declare class VirtualStreamManager {
173
176
  private readonly side;
174
177
  private readonly runtime;
175
178
  private readonly onDiagnostic?;
179
+ private onServerHandshakeReady?;
176
180
  private readonly serverConnections;
177
181
  private readonly serverSettlementConnections;
182
+ private readonly observedInvalidReadyPromises;
178
183
  private currentClientConnection?;
179
184
  private serverAttached;
180
185
  private retainedRevalidations;
@@ -182,6 +187,7 @@ export declare class VirtualStreamManager {
182
187
  constructor(optionsArg: IVirtualStreamManagerOptions);
183
188
  attachServer(): void;
184
189
  detachServer(): void;
190
+ private [setServerHandshakeReadyCallbackSymbol];
185
191
  bindClientConnection(webSocketArg: WebSocket, generationArg: number): void;
186
192
  setClientHandshakeReady(webSocketArg: WebSocket, generationArg: number): void;
187
193
  unbindClientConnection(webSocketArg: WebSocket, generationArg: number, reasonArg?: unknown): void;
@@ -265,4 +271,6 @@ export declare class VirtualStreamManager {
265
271
  }
266
272
  /** Internal bridge used only by the TypedSocket server authorization facade. */
267
273
  export declare function createAuthorizedServerVirtualStreamRegistration<TDirection extends TVirtualStreamDirection>(managerArg: VirtualStreamManager, peerArg: plugins.IWebSocketPeer, optionsArg: IVirtualStreamServerCreateRegistrationOptions<TDirection>): plugins.typedrequestInterfaces.IVirtualStreamTransportRegistration<TDirection>;
274
+ /** Internal bridge used only by the TypedSocket server readiness facade. */
275
+ export declare function setServerHandshakeReadyCallback(managerArg: VirtualStreamManager, callbackArg: (peerArg: plugins.IWebSocketPeer) => unknown): void;
268
276
  export {};