From 9f2246eb3552a3cf9f88be5a6759fcb0a5c0193b Mon Sep 17 00:00:00 2001 From: Alex Rhatushnyak Date: Sat, 9 Mar 2013 12:01:47 +0800 Subject: [PATCH] correct example lws_write in header Signed-off-by: Alex Rhatyshnyak --- lib/libwebsockets.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 28e649c..5ad749d 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -836,7 +836,8 @@ libwebsocket_context_user(struct libwebsocket_context *context); * // fill your part of the buffer... for example here it's all zeros * memset(&buf[LWS_SEND_BUFFER_PRE_PADDING], 0, 128); * - * libwebsocket_write(wsi, &buf[LWS_SEND_BUFFER_PRE_PADDING], 128); + * libwebsocket_write(wsi, &buf[LWS_SEND_BUFFER_PRE_PADDING], 128, + * LWS_WRITE_TEXT); * * When sending LWS_WRITE_HTTP, there is no protocol addition and you can just * use the whole buffer without taking care of the above. -- 2.7.4