allinurl / gwsocket

fast, standalone, language-agnostic WebSocket server RFC6455 compliant
http://gwsocket.io
MIT License
745 stars 67 forks source link

Serving files via sendfile #25

Open frink opened 4 years ago

frink commented 4 years ago

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 commented 4 years ago

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

frink commented 4 years ago

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