akatov's thread
I would like to use
I looked at the example in https://github.com/Effect-TS/effect/tree/main/packages/rpc-http/examples and can see that a new http server is provided in a layer:
Is there a way to pass in an existing (running) server instead?
Or, alternatively, how would one make the server provided by the layer above also offload request processing work that does not match the RPC route to an express app?
@effect/rpc-http in an existing http server that is currently offloading request processing to an express app.I looked at the example in https://github.com/Effect-TS/effect/tree/main/packages/rpc-http/examples and can see that a new http server is provided in a layer:
Layer.provide(NodeHttpServer.server.layer(createServer, { port: 3000 })) .Is there a way to pass in an existing (running) server instead?
Or, alternatively, how would one make the server provided by the layer above also offload request processing work that does not match the RPC route to an express app?
