Skip to content

How to attach mutliple services to a Builder? #2691

Answered by seanmonstar
weezy20 asked this question in Q&A
Discussion options

You must be logged in to vote

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 Service which 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by weezy20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants