WebSockets: add useful comment on lws_write()
This commit is contained in:
parent
c477a81a7c
commit
ed427e5704
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user