Minimum required MTKruto version: 0.2.41
import { Tmetrik } from "jsr:@tmetrik/mtkruto";
client.use(new Tmetrik("https://tmetrik-endpoint"));
// or with parameters
const tmetrik = new Tmetrik("https://tmetrik-endpoint", {
threshold: 30,
timeout: 5_000,
log: false,
});
client.use(tmetrik);threshold- The maximum number of updates to dispatch at once. Defaults to 10,000.timeout- The maximum duration to wait (in milliseconds) before dispatching updates. Defaults to 10,000 (10 seconds). Use a smaller duration to for near real-time dispatching of updates.log- Whether logging should be enabled. Defaults to true.