#pragma once #include "esp_err.h" #include "esp_http_server.h" // GET /ws: the v1 browser websocket. Each text frame is a v1 driver message (JSON); an optional "to" // MAC sends it to one driver, otherwise it is broadcast. Replies {"error": ...} when it cannot go out. esp_err_t ws_register(httpd_handle_t server);