You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@tim2CF: It is possible, albeit very awkward using the current API. The way you could do it in theory is to essentially implement something similar to the code that is generated by compile-proto-file for running a server.
Specifically, when you create a service named Foo, then compile-proto-file will generate a fooServer :: Foo ServerRequest ServerResponse -> ServiceOptions -> IO () that unpacks the service methods and repacks them into the server handlers to run a server on a single port. You could similar unpack the methods of multiple services and pack them into the handlers for a server in the same way as the generated code, but it would not be very ergonomic.
Is it possible? Any examples?
The text was updated successfully, but these errors were encountered: