Open metrue opened 3 months ago
Hi @metrue !
Sorry if my understanding is wrong.
I think adding a listen
method to Hono is not good. If listen
is a method for "server", then Hono should not have it. This is because Hono makes the "server" a black box. I think the server role is done by Cloudflare workerd, Deno or Bun runtime, or Node Adapter.
What is the feature you are proposing?
@Hono/node-server is really great lib for the Web Standard web framework to handle IncomingMessage, and I'm using it in EdgeQL, and implementation like this,
Then we start a server just just call
listen
by invoking instance function.