Skip to content

Instantly share code, notes, and snippets.

@justinmakaila
justinmakaila / index.js
Last active September 4, 2025 23:27
Closed pit/EOL detection
/* eslint-env node */
import { TelemetryClient } from "@iracing-data/grpc-node";
import { DateTime, Duration } from "luxon";
export const isEndOfLine = (flags) => !!(flags & 1);
export const isFreePass = (flags) => !!(flags & 2);
export const isWavedAround = (flags) => !!(flags & 4);
const main = async () => {
const apiUrl = process.env.API_URL || "localhost:50051";