Skip to content

Instantly share code, notes, and snippets.

View sionyx's full-sized avatar

Vadim Balashov sionyx

View GitHub Profile
import { FoxgloveServer } from "@foxglove/ws-protocol";
import Debug from "debug";
import { WebSocketServer } from "ws";
const log = Debug("foxglove:sysmon");
Debug.enable("foxglove:*");
// eslint-disable-next-line @typescript-eslint/promise-function-async
function delay(durationSec: number) {
return new Promise((resolve) => setTimeout(resolve, durationSec * 1000));