Handle multiple WebSocket frames within a TCP packet (#338)

This commit is contained in:
Chris Byrne
2018-07-24 20:22:54 +02:00
committed by Me No Dev
parent 69865879b4
commit b6b43d35fa
2 changed files with 77 additions and 67 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ class AsyncWebSocketClient {
void _onPoll();
void _onTimeout(uint32_t time);
void _onDisconnect();
void _onData(void *buf, size_t plen);
void _onData(void *pbuf, size_t plen);
};
typedef std::function<void(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventType type, void * arg, uint8_t *data, size_t len)> AwsEventHandler;