handle cases when not all data can be written to TCP stack #187

This commit is contained in:
Links
2017-04-09 17:58:23 +02:00
parent 81e567b248
commit adb52b11e9
4 changed files with 61 additions and 6 deletions

View File

@ -265,6 +265,8 @@ class WebSockets {
String base64_encode(uint8_t * data, size_t length);
bool readCb(WSclient_t * client, uint8_t *out, size_t n, WSreadWaitCb cb);
size_t write(WSclient_t * client, uint8_t *out, size_t n);
size_t write(WSclient_t * client, const char *out);
};