Skip to content

Added configurable WebSocket tx buffer size #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/WebSocketClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

#include "HttpClient.h"

#ifndef WS_TX_BUFFER_SIZE
#define WS_TX_BUFFER_SIZE 128
#endif

static const int TYPE_CONTINUATION = 0x0;
static const int TYPE_TEXT = 0x1;
static const int TYPE_BINARY = 0x2;
Expand Down Expand Up @@ -86,7 +90,7 @@ class WebSocketClient : public HttpClient
private:
bool iTxStarted;
uint8_t iTxMessageType;
uint8_t iTxBuffer[128];
uint8_t iTxBuffer[WS_TX_BUFFER_SIZE];
uint64_t iTxSize;

uint8_t iRxOpCode;
Expand Down