gwsocket icon indicating copy to clipboard operation
gwsocket copied to clipboard

Serving files via sendfile

Open frink opened this issue 5 years ago • 2 comments

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.

frink avatar Sep 29 '19 19:09 frink

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

allinurl avatar Sep 30 '19 18:09 allinurl

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

frink avatar Oct 02 '19 00:10 frink