This commit is contained in:
Dax Raad 2025-08-27 11:51:40 -04:00
parent 7993c2ebde
commit a0293468de
17 changed files with 393 additions and 133 deletions

View file

@ -0,0 +1,11 @@
import { createOpencodeClient, createOpencodeServer } from "../src/index"
const client = createOpencodeClient({
baseUrl: "http://localhost:4096",
})
await client.event.subscribe().then(async (event) => {
for await (const e of event.stream) {
console.log(e)
}
})