@api.global/typedsocket 6.1.0 → 6.3.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.
@@ -4,6 +4,7 @@ export { toClientWebSocketCloseCode } from './helpers.websocket.js';
4
4
  export { TYPEDSOCKET_MAX_RETAINED_CLIENT_TAG_MUTATIONS, TYPEDSOCKET_MAX_RETAINED_CLIENT_TAG_MUTATIONS_PER_NAME, } from './classes.clienttagreconciler.js';
5
5
  import type { TTypedSocketDiagnosticEvent } from './interfaces.diagnostics.js';
6
6
  import type { INativeByteAuthorizationAdapter, INativeByteCreateVirtualStreamOptions, TNativeByteCapabilityMode } from './interfaces.nativebytes.js';
7
+ import type { INativeMessageAuthorizationAdapter, INativeMessageCreateBinaryChannelOptions, INativeMessageReceiveGrant, TNativeMessageCapabilityMode } from './interfaces.nativemessages.js';
7
8
  import type { ITypedSocketClientTagPolicy } from './classes.typedsockettagpolicymanager.js';
8
9
  export type TTypedSocketSide = 'server' | 'client';
9
10
  export type TConnectionStatus = 'new' | 'connecting' | 'connected' | 'disconnected' | 'reconnecting';
@@ -58,6 +59,7 @@ export interface ITypedSocketClientOptions {
58
59
  maxBackoffMs?: number;
59
60
  abortSignal?: AbortSignal;
60
61
  nativeByteCapabilityMode?: TNativeByteCapabilityMode;
62
+ nativeMessageCapabilityMode?: TNativeMessageCapabilityMode;
61
63
  /** Limits may lower, but never raise, TypedSocket package ceilings. */
62
64
  limits?: Partial<ITypedSocketClientLimits>;
63
65
  /** Restores connection-bound authentication before desired tags are reconciled. */
@@ -66,6 +68,8 @@ export interface ITypedSocketClientOptions {
66
68
  export interface ITypedSocketServerOptions {
67
69
  nativeByteCapabilityMode?: TNativeByteCapabilityMode;
68
70
  nativeByteAuthorizationAdapter?: INativeByteAuthorizationAdapter;
71
+ nativeMessageCapabilityMode?: TNativeMessageCapabilityMode;
72
+ nativeMessageAuthorizationAdapter?: INativeMessageAuthorizationAdapter;
69
73
  clientTagPolicy?: ITypedSocketClientTagPolicy;
70
74
  }
71
75
  /**
@@ -185,6 +189,7 @@ export declare class TypedSocket {
185
189
  private retainedServerInterests;
186
190
  private retainedServerInterestsByPeer;
187
191
  private readonly nativeByteAuthorizationAdapter;
192
+ private readonly nativeMessageAuthorizationAdapter;
188
193
  private readonly tagPolicyManager;
189
194
  private constructor();
190
195
  /**
@@ -196,6 +201,7 @@ export declare class TypedSocket {
196
201
  */
197
202
  private connect;
198
203
  private negotiateClientCapabilities;
204
+ private negotiateClientNativeMessages;
199
205
  private restoreClientConnection;
200
206
  /**
201
207
  * Converts an HTTP(S) URL to a WebSocket URL
@@ -265,6 +271,11 @@ export declare class TypedSocket {
265
271
  * TypedRequest carries its opaque descriptor when the facade enters a DTO.
266
272
  */
267
273
  createVirtualStream(optionsArg: INativeByteCreateVirtualStreamOptions): plugins.typedrequestInterfaces.INativeByteVirtualStreamReceiver<Uint8Array>;
274
+ /**
275
+ * Creates an authorized ephemeral binary-message receive channel for one
276
+ * exact server peer. Its ordinary descriptor must be sent explicitly.
277
+ */
278
+ createBinaryMessageChannel(optionsArg: INativeMessageCreateBinaryChannelOptions): INativeMessageReceiveGrant;
268
279
  /**
269
280
  * Gets the current connection status
270
281
  */