import { Hono } from "jsr:@hono/hono";
import { stream, streamSSE, streamText } from "jsr:@hono/hono/streaming";
const app = new Hono();
app.get("/", (c) => {
return streamText(c, async (stream) => {
await stream.writeln("Hello");
await stream.sleep(1000);
await stream.write(`Hono!`);
});
});
export default app.fetch;