How to attach mutliple services to a Builder? #2691
-
|
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
A server only uses 1 service. When a connection is accepted, it calls the "make service", so you can do any connection-specific setup, and then return the Do you have different services that are based on routes? Then you'll need to do routing in a single service. You could use something like routerify to do so. Or look at the Echo guide that shows routing without any other library. |
Beta Was this translation helpful? Give feedback.
A server only uses 1 service. When a connection is accepted, it calls the "make service", so you can do any connection-specific setup, and then return the
Servicewhich will handle all requests on that connection.Do you have different services that are based on routes? Then you'll need to do routing in a single service. You could use something like routerify to do so. Or look at the Echo guide that shows routing without any other library.