40 #ifndef WEBSOCKETCLIENT_H_ 41 #define WEBSOCKETCLIENT_H_ 51 #define AVAILABLE_TIMEOUT_MS 500 55 #define TIMEOUT_IN_MS 10000 59 #ifndef CALLBACK_FUNCTIONS 60 #define CALLBACK_FUNCTIONS 1 65 #ifndef MAX_FRAME_LENGTH 66 #define MAX_FRAME_LENGTH 256 69 #define SIZE(array) (sizeof(array) / sizeof(*array)) 74 #define WS_OPCODE_TEXT 0x1 75 #define WS_OPCODE_BINARY 0x2 76 #define WS_OPCODE_CLOSE 0x8 77 #define WS_OPCODE_PING 0x9 78 #define WS_OPCODE_PONG 0xa 98 void sendData(
const char *str, uint8_t opcode);
99 void sendData(String str, uint8_t opcode);
Definition: WebSocketClient.h:84
char * path
Definition: WebSocketClient.h:101
void disconnectStream()
Definition: WebSocketClient.cpp:241
void sendEncodedData(char *str)
Definition: WebSocketClient.cpp:312
void sendData(const char *str)
Definition: WebSocketClient.cpp:264
char * origin
Definition: WebSocketClient.h:103
unsigned long _startMillis
Definition: WebSocketClient.h:107
bool handshake(Client &client)
Definition: WebSocketClient.cpp:7
int timedRead()
Definition: WebSocketClient.cpp:304
bool analyzeRequest()
Definition: WebSocketClient.cpp:38
String getData()
Definition: WebSocketClient.cpp:254
char * host
Definition: WebSocketClient.h:102
Client * socket_client
Definition: WebSocketClient.h:106
String handleStream()
Definition: WebSocketClient.cpp:137
const char * socket_urlPrefix
Definition: WebSocketClient.h:109