13
0

WebSockets: add useful comment on lws_write()

This commit is contained in:
Luciano Iam 2020-04-10 08:27:00 +02:00 committed by Robin Gareus
parent c477a81a7c
commit ed427e5704
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -397,6 +397,7 @@ WebsocketsServer::send_index_body (Client wsi)
#endif
int len = strlen (body);
/* lws_write() expects a writable buffer */
if (lws_write (wsi, reinterpret_cast<unsigned char*> (body), len, LWS_WRITE_HTTP) != len) {
return 1;
}