allinurl/gwsocket

Serving files via sendfile

frink opened this issue · 2 comments

frink commented

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.

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

frink commented

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