Skip to content

Commit 582d3c3

Browse files
committed
Increase buffer size to 1024 bytes
This increases the buffer size to 1024, as otherwise the payload will be truncated if it exceeds 128 bytes, which causing issues when a consumer attempts to parse messages, as it'll very likely be invalid json.
1 parent 7f36561 commit 582d3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebSocketClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class WebSocketClient : public HttpClient
8686
private:
8787
bool iTxStarted;
8888
uint8_t iTxMessageType;
89-
uint8_t iTxBuffer[128];
89+
uint8_t iTxBuffer[1024];
9090
uint64_t iTxSize;
9191

9292
uint8_t iRxOpCode;

0 commit comments

Comments
 (0)