socket-function 1.1.7 → 1.1.8
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/SocketFunction.d.ts +1 -0
- package/SocketFunction.ts +2 -0
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/CallFactory.ts +1 -0
package/SocketFunction.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare class SocketFunction {
|
|
|
25
25
|
static LEGACY_INITIALIZE: boolean;
|
|
26
26
|
static COEP: string;
|
|
27
27
|
static COOP: string;
|
|
28
|
+
static TOTAL_CALLS: number;
|
|
28
29
|
static readonly WIRE_SERIALIZER: {
|
|
29
30
|
serialize: (obj: unknown) => MaybePromise<Buffer[]>;
|
|
30
31
|
deserialize: (buffers: Buffer[]) => MaybePromise<unknown>;
|
package/SocketFunction.ts
CHANGED
|
@@ -69,6 +69,8 @@ export class SocketFunction {
|
|
|
69
69
|
// NOTE: This COOP and COEP defaults are required so window.crossOriginIsolated will be true.
|
|
70
70
|
public static COOP = "same-origin";
|
|
71
71
|
|
|
72
|
+
public static TOTAL_CALLS = 0;
|
|
73
|
+
|
|
72
74
|
// In retrospect... dynamically changing the wire serializer is a BAD idea. If any calls happen
|
|
73
75
|
// before it is changed, things just break. Also, it needs to be changed on both sides,
|
|
74
76
|
// or else things break. Also, it is very hard to detect when the issue is different serializers
|
package/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare module "socket-function/SocketFunction" {
|
|
|
34
34
|
static LEGACY_INITIALIZE: boolean;
|
|
35
35
|
static COEP: string;
|
|
36
36
|
static COOP: string;
|
|
37
|
+
static TOTAL_CALLS: number;
|
|
37
38
|
static readonly WIRE_SERIALIZER: {
|
|
38
39
|
serialize: (obj: unknown) => MaybePromise<Buffer[]>;
|
|
39
40
|
deserialize: (buffers: Buffer[]) => MaybePromise<unknown>;
|
package/package.json
CHANGED
package/src/CallFactory.ts
CHANGED