wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.05k stars 613 forks source link

Add a simple File Server to wpiutil #2518

Open ThadHouse opened 4 years ago

ThadHouse commented 4 years ago

In a similar vain to the port forwarder, a simple uv based static file server could be super useful, especially with more websocket supporting protocols.

In wpiutil, this could be fairly easy to run from both C++ and Java.

virtuald commented 4 years ago

It would be great if this could be integrated with a websocket.

I have a terrible version of this derived from the vision pi stuff @ https://github.com/virtuald/halsim-websocket/blob/master/src/main/native/cpp/HALSimHttpConnection.cpp , but as you've noted it won't work on Windows.

PeterJohnson commented 4 years ago

The HALSIM websocket server extension has this, but of course that's not usable from Rio robot code.