strong-tie/inbound-calls
0
1'use strict'2 3const fastify = require('../fastify')({4 logger: false5})6 7const Readable = require('node:stream').Readable8 9fastify10 .get('/', function (req, reply) {11 const stream = Readable.from(['hello world'])12 reply.send(stream)13 })14 15fastify.listen({ port: 3000 }, (err, address) => {16 if (err) {17 throw err18 }19 fastify.log.info(`server listening on ${address}`)20})21 