mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
We now use a wrapper (wpi::print) to catch exceptions since we can't patch std::print() to not throw when we ultimately migrate to it. fmtlib and std format/print throw the same exceptions and always have. We previously patched fmt::print() to not throw a write failure exception, but we can't do that for std::print(); wpi::print() is the migration plan.
HAL WebSockets Client
This is an extension that provides a client version of a WebSockets API for transmitting robot hardware interface state over a network. See the Robot Hardware Interface WebSockets API specification for more details on the protocol.
Configuration
The WebSockets client has a number of configuration options available through environment variables.
HALSIMWS_HOST: The host to connect to. Defaults to localhost.
HALSIMWS_PORT: The port number to connect to. Defaults to 3300.
HALSIMWS_URI: The URI path to connect to. Defaults to "/wpilibws".