-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] is it possible / easy to add a klein application to an existing twisted.application.service.Application? #753
Comments
managed to work this one out far more easily than i expected... for future searchers:
|
Awesome, glad you were able to quickly figure this out. Is there still a doc issue here though, where it could have been made clearer, so you wouldn't have gotten stuck in the first place? |
it definitely wasn't super clear. i was able to figure it out by looking at the didn't seem well documented (or maybe I missed it) that you can launch a standalone maybe a line in the page of the docs i linked pointing that out might prove fruitful for someone else in the future. |
@michelcrypt4d4mus I filed #757 to try to add something to the documentation so others don't experience this as badly. |
Apologies if this is the wrong place to ask this but is it possible / easy to add a
klein
application to an existingTwisted
app launched via a.tac
file? I found this part of the docs which explain how to implement aklein
app and launch it viatwistd -n web
so it seems like it should be possible to do what i describe - create aklein
resource and add it to theApplication
viasetServiceParent()
- but I'm unclear as to how to proceed given that the documentation example assumes thatklein
is the entire application whereas my use case requires me to manage other resources listening on other ports.thanks.
The text was updated successfully, but these errors were encountered: