basic event sending works

This commit is contained in:
Links
2018-05-12 16:53:34 +02:00
parent 8967356af3
commit f95c014342
6 changed files with 199 additions and 65 deletions

View File

@@ -27,7 +27,7 @@
#include "WebSockets.h"
class WebSocketsClient: private WebSockets {
class WebSocketsClient: protected WebSockets {
public:
#ifdef __AVR__
typedef void (*WebSocketClientEvent)(WStype_t type, uint8_t * payload, size_t length);
@@ -87,6 +87,8 @@ class WebSocketsClient: private WebSockets {
void setReconnectInterval(unsigned long time);
bool isConnected(void);
protected:
String _host;
uint16_t _port;