TsgcWebSocketHTTPServer | HTTP Dispatch Files

When a client requests a file, the OnCommandGet event is fired, but you can use the DocumentRoot property to dispatch files automatically.

 

Example: if you set DocumentRoot to c:/www/files. Every time a new file is requested, the server will search in this folder. If the file exists, it will be dispatched automatically.