Integrating `HttpApi` with WebSockets in Effect Typescript Library
Question about integrating
Running the
If anyone has already setup a web socket route using
HttpApi with a Web Sockets endpoint. I have a minimal setup where I've squished RPC and HttpApi together using the HttpLayerRouter and have been wanting to expand this to include a route for handling web sockets. As I've gone down the rabbit hole I've not found any good example of an effect-first web socket server and the resulting work around I've found is to simply serve up two ports, one with HttpLayerRouter and another with Bun.serve():Running the
Bun.serve inside the effect feels a bit cursed, but it works HttpApi could help with how this could be done using effect-platform then I'm all ears