improve websocket implementation

This commit is contained in:
2025-07-28 10:15:49 -04:00
parent 99824ee2a6
commit 4f313b3336
3 changed files with 84 additions and 14 deletions
+8
View File
@@ -7,6 +7,14 @@
#define WS_MAX_RETRIES 10
#define WS_POLL_INTERVAL 60 // WS_POLL_INTERVAL/2 seconds
#define WS_MAX_CONN 4
#define WS_BUFFER_SIZE 512
#define OP_CONT 0x00
#define OP_TEXT 0x01
#define OP_BINARY 0x02
#define OP_CLOSE 0x08
#define OP_PING 0x09
#define OP_PONG 0x0A
struct ws_state {
bool active;