Skip to content

five-on-it / apps/server/src/metrics / createMetrics

Function: createMetrics() ​

createMetrics(host, hz, rtc?): ServerMetrics

Defined in: apps/server/src/metrics.ts:35

The metrics of a process whose rooms host keeps, its loop stepping at hz, its data channel's numbers read from rtc when it offers one.

Parameters ​

host ​

RoomHost

hz ​

number

rtc? ​

() => RtcStats

Returns ​

ServerMetrics