elysia stream

卓能文發表於2024-07-21
import { Elysia } from 'elysia'

const app = new Elysia()
    .get('/ok', function* () {
        yield 1
        yield 2
        yield 3
    })
    .listen(3000)