Add binary protocol v2 & v3 to websocket

This commit is contained in:
Terrence
2025-04-28 16:29:33 +08:00
parent 1f03d770cc
commit 5f8389c135
5 changed files with 86 additions and 13 deletions

View File

@@ -24,6 +24,7 @@ public:
private:
EventGroupHandle_t event_group_handle_;
WebSocket* websocket_ = nullptr;
int version_ = 1;
void ParseServerHello(const cJSON* root);
bool SendText(const std::string& text) override;