DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
websocket_sse.cpp File Reference

WebSocket (RFC 6455) and Server-Sent Events upgrade + public API for DetWebServer. More...

#include "dwserver.h"
#include "network_drivers/transport/tcp.h"
#include "server/dwserver_internal.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Detailed Description

WebSocket (RFC 6455) and Server-Sent Events upgrade + public API for DetWebServer.

Split out of dwserver.cpp (single-purpose server files). The WS handshake (Sec-WebSocket-Accept over SHA-1+base64, optional permessage-deflate), the SSE 200 upgrade, and the send/broadcast public API for both. The frame codecs live in the presentation layer (websocket/, sse/); this is the DetWebServer glue. The upgrade entry points are called by the route dispatcher in dwserver.cpp (declared in server/dwserver_internal.h). Behaviour is identical to the pre-split code.

Definition in file websocket_sse.cpp.