initial commit

This commit is contained in:
2026-07-14 21:31:59 -07:00
commit bd79966218
61 changed files with 19379 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import assert from "node:assert/strict";
import test from "node:test";
import { liveEventSchema, makeEvent } from "../dist/index.js";
test("protocol parses typed event", () => {
const event = makeEvent("1", "live.enter", { viewer: { uid: "42", name: "观众" } });
assert.equal(liveEventSchema.parse(event).type, "live.enter");
});