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

Serving files via sendfile #25

Open
frink opened this issue Sep 29, 2019 · 2 comments
Open

Serving files via sendfile #25

frink opened this issue Sep 29, 2019 · 2 comments

Comments

@frink
Copy link

frink commented Sep 29, 2019

Would be helpful to include a static web server to deliver the client web app. I was thinking of adding two more CLI options:

--web-root=/path/to/webroot/
--pipeurl=/path/to/websocket

This allows for websites to be fully dynamic while remaining language agnostic using websockets for any dynamic io and the static web servers for the rest.

@allinurl
Copy link
Owner

I agree on this. Having a static web server would be really nice!

@frink
Copy link
Author

frink commented Oct 2, 2019

I've looked at several different websocket server implementations and this is one of the best I've seen in terms of ease of use for prototyping. Since everything dynamic can happen via websockets so in theory you have a complete solution with very little configuration overhead once this is included. And sendfile type static servers are extremely performant...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants