How to work with node:cluster in Bun?
I tried to test hono with node:cluster module that has just been added to Bun v1.2.25
Here are my scripts:
server.js
And cluster.js
Then I ran bun run server.js
and access http://localhost:3000
--> it works.
But when I started cluster mode with bun run cluster.js
, the script seems work but I could not access the HTTP server.
All the following targets are unaccessible:
- http://localhost:3000
- http://127.0.0.1:3000
- http://0.0.0.0:3000
0 Replies