@rebasepro/server 0.34.0 → 0.34.2
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/dist-DDppJiwg.js +19354 -0
- package/dist/dist-DDppJiwg.js.map +1 -0
- package/dist/index.es.js +130 -12
- package/dist/index.es.js.map +1 -1
- package/dist/metrics/realtime.d.ts +16 -0
- package/dist/services/routed-realtime-service.d.ts +9 -0
- package/dist/src--EBfCtYm.js.map +1 -1
- package/package.json +5 -5
- package/dist/dist-D_R0Khut.js +0 -19354
- package/dist/dist-D_R0Khut.js.map +0 -1
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
* say whether a group of clients stays on one instance: frames skipped rise
|
|
8
8
|
* while frames published stay flat.
|
|
9
9
|
*
|
|
10
|
+
* And what its sockets did: opened, closed by whom (`closed_by`) and with
|
|
11
|
+
* which code, frames and bytes in and pushed out, and frames refused by code
|
|
12
|
+
* (rate limit, channel authorization, a broadcast too large for the bus).
|
|
13
|
+
* Socket closes by `closed_by` are what to read when clients report dropped
|
|
14
|
+
* connections: `network` and `client_watchdog` are the path to the client,
|
|
15
|
+
* `no_pong` and `backlog` this server letting go, `shutdown` a deploy or a
|
|
16
|
+
* scale-in.
|
|
17
|
+
*
|
|
10
18
|
* Counts only. A channel name is customer data, and a label per channel is
|
|
11
19
|
* unbounded.
|
|
12
20
|
*
|
|
@@ -18,6 +26,14 @@ export declare const REALTIME_SOCKETS_METRIC = "rebase_realtime_sockets";
|
|
|
18
26
|
export declare const REALTIME_CHANNELS_METRIC = "rebase_realtime_channels";
|
|
19
27
|
export declare const REALTIME_BUS_PUBLISHED_METRIC = "rebase_realtime_bus_frames_published_total";
|
|
20
28
|
export declare const REALTIME_BUS_SKIPPED_METRIC = "rebase_realtime_bus_frames_skipped_total";
|
|
29
|
+
export declare const REALTIME_OPENS_METRIC = "rebase_realtime_socket_opens_total";
|
|
30
|
+
export declare const REALTIME_CLOSES_METRIC = "rebase_realtime_socket_closes_total";
|
|
31
|
+
export declare const REALTIME_CLOSE_CODES_METRIC = "rebase_realtime_socket_close_codes_total";
|
|
32
|
+
export declare const REALTIME_FRAMES_IN_METRIC = "rebase_realtime_frames_in_total";
|
|
33
|
+
export declare const REALTIME_BYTES_IN_METRIC = "rebase_realtime_bytes_in_total";
|
|
34
|
+
export declare const REALTIME_FRAMES_OUT_METRIC = "rebase_realtime_frames_out_total";
|
|
35
|
+
export declare const REALTIME_BYTES_OUT_METRIC = "rebase_realtime_bytes_out_total";
|
|
36
|
+
export declare const REALTIME_REFUSED_METRIC = "rebase_realtime_frames_refused_total";
|
|
21
37
|
/**
|
|
22
38
|
* Report `provider`'s counts in `registry` at each render. A deployment with no
|
|
23
39
|
* realtime, or a provider that keeps no counts, emits none of these series.
|
|
@@ -31,6 +31,15 @@ export interface WsRealtimeService extends RealtimeProvider {
|
|
|
31
31
|
* Optional: a provider that sends nothing depending on one ignores them.
|
|
32
32
|
*/
|
|
33
33
|
setClientOptIns?(clientId: string, optIns: ReadonlySet<string>): void;
|
|
34
|
+
/**
|
|
35
|
+
* What a socket is in and what it was pushed, for the line its close
|
|
36
|
+
* logs. Optional: a provider that keeps no channels need not answer.
|
|
37
|
+
*/
|
|
38
|
+
describeClient?(clientId: string): {
|
|
39
|
+
channels: string[];
|
|
40
|
+
framesOut: number;
|
|
41
|
+
bytesOut: number;
|
|
42
|
+
};
|
|
34
43
|
/**
|
|
35
44
|
* Whether this provider actually implements channels, presence and
|
|
36
45
|
* broadcast. Declared by the provider rather than inferred, because the
|