mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Many teams have issues trying to read the DS too early. By switching to an optional, we cause teams to check 2 things. Either 1) they explicitly check, and their code is correct, or 2) they just read .value() and their code reboots in a loop. However, because the DS will eventually connect, this 2nd case is ok, and should theoretically be undetectable on the field.
HAL WebSockets Core
This is the common WebSockets implementation shared by the HAL WebSockets Client and HAL WebSockets Server extensions. It is not a standalone extension.
These extensions provide a WebSockets API for transmitting robot hardware interface state over a network and implement the Robot Hardware Interface WebSockets API specification. See the specification for more details on the protocol.