Effect CommunityEC
Effect Community3y ago
14 replies
wayne

Stopping Http.Server Programmatically

Given the following example of using Http.Server, what would I need to change to programatically stop Http.Server?
https://github.com/Effect-TS/platform/blob/main/packages/platform-node/examples/http-server.ts
I'm looking for something similar to Express' Server.close() method
Would I need to write a different version of runMain that returns an Effect that I could run to stop the server?
Was this page helpful?