@actuallab/rpc 14.0.17 → 14.1.5
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/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -790,7 +790,7 @@ declare class RpcSystemCallSender {
|
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
/** Factory signature shared by all peer lookup/creation methods. Serialization
|
|
793
|
-
* format is encoded in the URL via `?f=...` (see {@link
|
|
793
|
+
* format is encoded in the URL via `?f=...` (see {@link RpcRefBuilder}),
|
|
794
794
|
* so the factory doesn't need an extra parameter for it. `getClientPeer` /
|
|
795
795
|
* `getServerPeer` cast the result, so the factory returns RpcPeer. */
|
|
796
796
|
type RpcPeerFactory = (hub: RpcHub, ref: string) => RpcPeer;
|
|
@@ -1097,7 +1097,7 @@ declare class RpcClientPeer extends RpcPeer {
|
|
|
1097
1097
|
* @param url Full WebSocket URL — the serialization format is taken from
|
|
1098
1098
|
* the `f=` query parameter (e.g. `wss://host/rpc/ws?f=msgpack6`);
|
|
1099
1099
|
* falls back to the resolver's default when absent. Use
|
|
1100
|
-
* {@link
|
|
1100
|
+
* {@link RpcRefBuilder.forClient} to compose URLs with a format.
|
|
1101
1101
|
* @param mustStart Kick off the reconnect loop automatically at the end of
|
|
1102
1102
|
* construction (default `true`). Pass `false` if you need to
|
|
1103
1103
|
* tweak `reconnectDelayer`, `handshakeTimeoutMs`, or similar
|
|
@@ -1484,7 +1484,7 @@ declare class RpcStream<T> implements AsyncIterable<T>, IRpcObject {
|
|
|
1484
1484
|
*/
|
|
1485
1485
|
declare function resolveStreamRefs(value: unknown, peer: RpcPeer): unknown;
|
|
1486
1486
|
|
|
1487
|
-
declare class
|
|
1487
|
+
declare class RpcRefBuilder {
|
|
1488
1488
|
/** Build a client peer ref from a WebSocket URL, optionally baking in the
|
|
1489
1489
|
* serialization format as a `f=` query parameter.
|
|
1490
1490
|
* @param url Base WebSocket URL, e.g. `wss://host/rpc/ws`.
|
|
@@ -1559,4 +1559,4 @@ declare function xxh3_64str(input: string, seed?: bigint): bigint;
|
|
|
1559
1559
|
*/
|
|
1560
1560
|
declare function computeMethodHash(methodName: string): number;
|
|
1561
1561
|
|
|
1562
|
-
export { ARG_DELIMITER, ENVELOPE_DELIMITER, FRAME_DELIMITER, type IRpcObject, IncreasingSeqCompressor, type MethodMeta, REMOTE_EXCEPTION_TYPE_REF, RPC_CLOSE_CODE_UNSUPPORTED_FORMAT, type RemoteHandshake, type RpcCallOptions, RpcCallStage, RpcCallTimeouts, RpcCallTypeId, RpcClientPeer, RpcClientPeerReconnectDelayer, type RpcConnection, RpcConnectionState, type RpcConnectionUrlResolver, type RpcDeserializedMessage, type RpcDispatchContext, RpcError, RpcHub, RpcInboundCall, RpcInboundCallTracker, RpcJsonSerializationFormat, RpcLimits, type RpcLogScope, type RpcMessage, RpcMessageChannelConnection, RpcMessagePackCompactSerializationFormat, RpcMessagePackSerializationFormat, type RpcMethodDef, type RpcMethodDefInput, RpcMethodRegistry, type RpcObjectId, RpcObjectKind, RpcOutboundCall, RpcOutboundCallTracker, RpcPeer, type RpcPeerFactory,
|
|
1562
|
+
export { ARG_DELIMITER, ENVELOPE_DELIMITER, FRAME_DELIMITER, type IRpcObject, IncreasingSeqCompressor, type MethodMeta, REMOTE_EXCEPTION_TYPE_REF, RPC_CLOSE_CODE_UNSUPPORTED_FORMAT, type RemoteHandshake, type RpcCallOptions, RpcCallStage, RpcCallTimeouts, RpcCallTypeId, RpcClientPeer, RpcClientPeerReconnectDelayer, type RpcConnection, RpcConnectionState, type RpcConnectionUrlResolver, type RpcDeserializedMessage, type RpcDispatchContext, RpcError, RpcHub, RpcInboundCall, RpcInboundCallTracker, RpcJsonSerializationFormat, RpcLimits, type RpcLogScope, type RpcMessage, RpcMessageChannelConnection, RpcMessagePackCompactSerializationFormat, RpcMessagePackSerializationFormat, type RpcMethodDef, type RpcMethodDefInput, RpcMethodRegistry, type RpcObjectId, RpcObjectKind, RpcOutboundCall, RpcOutboundCallTracker, RpcPeer, type RpcPeerFactory, type RpcPeerState, RpcPeerStateKind, RpcPeerStateMonitor, type RpcReceivedMessage, RpcRefBuilder, RpcRemoteExecutionMode, RpcRemoteObjectTracker, RpcSerializationFormat, RpcSerializationFormatResolver, RpcServerPeer, type RpcServiceDef, RpcServiceHost, type RpcServiceImpl, RpcSharedObjectTracker, RpcStream, type RpcStreamOptions, type RpcStreamRef, RpcStreamSender, type RpcStreamSource, RpcSystemCallHandler, RpcSystemCallSender, RpcSystemCalls, RpcType, RpcWebSocketConnection, type RpcWireData, type ServiceMeta, type WebSocketLike, type WebSocketServer, WebSocketState, computeMethodHash, createBinaryEncoder, createMessageChannelPair, createRpcClient, defaultBinaryDecoder, defaultBinaryEncoder, defaultConnectionUrlResolver, defineRpcService, deserializeBinaryMessage, deserializeCompactBinaryMessage, deserializeMessage, getLogs, getMethodsMeta, getServiceMeta, getStateDescription, isConnected, likelyConnected, parseStreamRef, readPolymorphismMarker, resolveStreamRefs, rpcMethod, rpcService, serializeBinaryFrame, serializeBinaryMessage, serializeCompactBinaryMessage, serializeFrame, serializeMessage, splitBinaryFrame, splitCompactBinaryFrame, splitFrame, toExceptionInfo, wireMethodName, xxh3_64, xxh3_64str };
|
package/dist/index.d.ts
CHANGED
|
@@ -790,7 +790,7 @@ declare class RpcSystemCallSender {
|
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
/** Factory signature shared by all peer lookup/creation methods. Serialization
|
|
793
|
-
* format is encoded in the URL via `?f=...` (see {@link
|
|
793
|
+
* format is encoded in the URL via `?f=...` (see {@link RpcRefBuilder}),
|
|
794
794
|
* so the factory doesn't need an extra parameter for it. `getClientPeer` /
|
|
795
795
|
* `getServerPeer` cast the result, so the factory returns RpcPeer. */
|
|
796
796
|
type RpcPeerFactory = (hub: RpcHub, ref: string) => RpcPeer;
|
|
@@ -1097,7 +1097,7 @@ declare class RpcClientPeer extends RpcPeer {
|
|
|
1097
1097
|
* @param url Full WebSocket URL — the serialization format is taken from
|
|
1098
1098
|
* the `f=` query parameter (e.g. `wss://host/rpc/ws?f=msgpack6`);
|
|
1099
1099
|
* falls back to the resolver's default when absent. Use
|
|
1100
|
-
* {@link
|
|
1100
|
+
* {@link RpcRefBuilder.forClient} to compose URLs with a format.
|
|
1101
1101
|
* @param mustStart Kick off the reconnect loop automatically at the end of
|
|
1102
1102
|
* construction (default `true`). Pass `false` if you need to
|
|
1103
1103
|
* tweak `reconnectDelayer`, `handshakeTimeoutMs`, or similar
|
|
@@ -1484,7 +1484,7 @@ declare class RpcStream<T> implements AsyncIterable<T>, IRpcObject {
|
|
|
1484
1484
|
*/
|
|
1485
1485
|
declare function resolveStreamRefs(value: unknown, peer: RpcPeer): unknown;
|
|
1486
1486
|
|
|
1487
|
-
declare class
|
|
1487
|
+
declare class RpcRefBuilder {
|
|
1488
1488
|
/** Build a client peer ref from a WebSocket URL, optionally baking in the
|
|
1489
1489
|
* serialization format as a `f=` query parameter.
|
|
1490
1490
|
* @param url Base WebSocket URL, e.g. `wss://host/rpc/ws`.
|
|
@@ -1559,4 +1559,4 @@ declare function xxh3_64str(input: string, seed?: bigint): bigint;
|
|
|
1559
1559
|
*/
|
|
1560
1560
|
declare function computeMethodHash(methodName: string): number;
|
|
1561
1561
|
|
|
1562
|
-
export { ARG_DELIMITER, ENVELOPE_DELIMITER, FRAME_DELIMITER, type IRpcObject, IncreasingSeqCompressor, type MethodMeta, REMOTE_EXCEPTION_TYPE_REF, RPC_CLOSE_CODE_UNSUPPORTED_FORMAT, type RemoteHandshake, type RpcCallOptions, RpcCallStage, RpcCallTimeouts, RpcCallTypeId, RpcClientPeer, RpcClientPeerReconnectDelayer, type RpcConnection, RpcConnectionState, type RpcConnectionUrlResolver, type RpcDeserializedMessage, type RpcDispatchContext, RpcError, RpcHub, RpcInboundCall, RpcInboundCallTracker, RpcJsonSerializationFormat, RpcLimits, type RpcLogScope, type RpcMessage, RpcMessageChannelConnection, RpcMessagePackCompactSerializationFormat, RpcMessagePackSerializationFormat, type RpcMethodDef, type RpcMethodDefInput, RpcMethodRegistry, type RpcObjectId, RpcObjectKind, RpcOutboundCall, RpcOutboundCallTracker, RpcPeer, type RpcPeerFactory,
|
|
1562
|
+
export { ARG_DELIMITER, ENVELOPE_DELIMITER, FRAME_DELIMITER, type IRpcObject, IncreasingSeqCompressor, type MethodMeta, REMOTE_EXCEPTION_TYPE_REF, RPC_CLOSE_CODE_UNSUPPORTED_FORMAT, type RemoteHandshake, type RpcCallOptions, RpcCallStage, RpcCallTimeouts, RpcCallTypeId, RpcClientPeer, RpcClientPeerReconnectDelayer, type RpcConnection, RpcConnectionState, type RpcConnectionUrlResolver, type RpcDeserializedMessage, type RpcDispatchContext, RpcError, RpcHub, RpcInboundCall, RpcInboundCallTracker, RpcJsonSerializationFormat, RpcLimits, type RpcLogScope, type RpcMessage, RpcMessageChannelConnection, RpcMessagePackCompactSerializationFormat, RpcMessagePackSerializationFormat, type RpcMethodDef, type RpcMethodDefInput, RpcMethodRegistry, type RpcObjectId, RpcObjectKind, RpcOutboundCall, RpcOutboundCallTracker, RpcPeer, type RpcPeerFactory, type RpcPeerState, RpcPeerStateKind, RpcPeerStateMonitor, type RpcReceivedMessage, RpcRefBuilder, RpcRemoteExecutionMode, RpcRemoteObjectTracker, RpcSerializationFormat, RpcSerializationFormatResolver, RpcServerPeer, type RpcServiceDef, RpcServiceHost, type RpcServiceImpl, RpcSharedObjectTracker, RpcStream, type RpcStreamOptions, type RpcStreamRef, RpcStreamSender, type RpcStreamSource, RpcSystemCallHandler, RpcSystemCallSender, RpcSystemCalls, RpcType, RpcWebSocketConnection, type RpcWireData, type ServiceMeta, type WebSocketLike, type WebSocketServer, WebSocketState, computeMethodHash, createBinaryEncoder, createMessageChannelPair, createRpcClient, defaultBinaryDecoder, defaultBinaryEncoder, defaultConnectionUrlResolver, defineRpcService, deserializeBinaryMessage, deserializeCompactBinaryMessage, deserializeMessage, getLogs, getMethodsMeta, getServiceMeta, getStateDescription, isConnected, likelyConnected, parseStreamRef, readPolymorphismMarker, resolveStreamRefs, rpcMethod, rpcService, serializeBinaryFrame, serializeBinaryMessage, serializeCompactBinaryMessage, serializeFrame, serializeMessage, splitBinaryFrame, splitCompactBinaryFrame, splitFrame, toExceptionInfo, wireMethodName, xxh3_64, xxh3_64str };
|
package/dist/index.js
CHANGED
|
@@ -2962,7 +2962,7 @@ var RpcClientPeer = class extends RpcPeer {
|
|
|
2962
2962
|
* @param url Full WebSocket URL — the serialization format is taken from
|
|
2963
2963
|
* the `f=` query parameter (e.g. `wss://host/rpc/ws?f=msgpack6`);
|
|
2964
2964
|
* falls back to the resolver's default when absent. Use
|
|
2965
|
-
* {@link
|
|
2965
|
+
* {@link RpcRefBuilder.forClient} to compose URLs with a format.
|
|
2966
2966
|
* @param mustStart Kick off the reconnect loop automatically at the end of
|
|
2967
2967
|
* construction (default `true`). Pass `false` if you need to
|
|
2968
2968
|
* tweak `reconnectDelayer`, `handshakeTimeoutMs`, or similar
|
|
@@ -4282,8 +4282,8 @@ function isSameWireMethod(a, b) {
|
|
|
4282
4282
|
return a.wireArgCount === b.wireArgCount && a.callTypeId === b.callTypeId && a.stream === b.stream && a.noWait === b.noWait && a.remoteExecutionMode === b.remoteExecutionMode;
|
|
4283
4283
|
}
|
|
4284
4284
|
|
|
4285
|
-
// src/rpc-
|
|
4286
|
-
var
|
|
4285
|
+
// src/rpc-ref-builder.ts
|
|
4286
|
+
var RpcRefBuilder = class {
|
|
4287
4287
|
/** Build a client peer ref from a WebSocket URL, optionally baking in the
|
|
4288
4288
|
* serialization format as a `f=` query parameter.
|
|
4289
4289
|
* @param url Base WebSocket URL, e.g. `wss://host/rpc/ws`.
|
|
@@ -4564,9 +4564,9 @@ export {
|
|
|
4564
4564
|
RpcOutboundCall,
|
|
4565
4565
|
RpcOutboundCallTracker,
|
|
4566
4566
|
RpcPeer,
|
|
4567
|
-
RpcPeerRefBuilder,
|
|
4568
4567
|
RpcPeerStateKind,
|
|
4569
4568
|
RpcPeerStateMonitor,
|
|
4569
|
+
RpcRefBuilder,
|
|
4570
4570
|
RpcRemoteExecutionMode,
|
|
4571
4571
|
RpcRemoteObjectTracker,
|
|
4572
4572
|
RpcSerializationFormat,
|