Accessing a Running HTTP Server Programmatically in Effect Layer
I have an HTTP server and I'd like to start/stop and otherwise access it (read its assigned port) programatically for testing. I have a layer with type
const AppLive: Layer.Layer<ServerRef, Error | ConfigError, never>. I'm running this layer with Effect.runFork(Layer.launch(AppLive))). I'd like to now get access to the running server from outside Effect somehow... any pointers or workarounds? Layer.launch appears to erase the result type of the AppLive layer. thanks in advance!