Skip to content
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

Using with command line tool #135

Closed
iloveitaly opened this issue Nov 3, 2022 · 1 comment
Closed

Using with command line tool #135

iloveitaly opened this issue Nov 3, 2022 · 1 comment

Comments

@iloveitaly
Copy link

I'm not able to get this working with a swift command line tool (i.e. no ui). The server starts, but it will not accept any requests. I'm calling RunLoop.main.run() after setting up the server.

Any ideas why this might be? Is there something special that needs to be done when not doing a ui app?

iloveitaly added a commit to iloveitaly/hyper-focus that referenced this issue Nov 8, 2022
I wanted to see if this was a dispatchthread thing. It wasn't.

Building42/Telegraph#135
@yvbeek
Copy link
Member

yvbeek commented Feb 27, 2023

Honestly I'm not sure, I've never used Telegraph in a command-line scenario.
Instead of RunLoop.main.run() have you tried dispatchMain()?

I'll close this for now, because it isn't really a scenario Telegraph supports.
But if you could try that or otherwise share a test app, I can have a look.

@yvbeek yvbeek closed this as completed Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants