[Libwebsockets] plain http vs websockets

Andy Green andy at warmcat.com
Thu Mar 24 20:31:00 CET 2016



On 03/25/2016 12:02 AM, Suman.Patro-TRN wrote:
> Hello,
>
>              I have implemented websockets protocol using libwebsockets
> library. But I would like to compare  websockets to plain http model ,
> how do I do that using the libwebsockets library itself ?

If you mean doing AJAX, on lws you just need to take care about disable 
any lws timeout on the http connection.

Otherwise you write on the http connection as usual when you have 
something new, and javascript on the client reads it and updates the page.

-Andy

>             Any help is highly appreciated.Kindly reply.
>
>             Thanks and regards,
>
>               Suman
>
> *Larsen & Toubro Limited *
>
> *www.larsentoubro.com*
>
> This Email may contain confidential or privileged information for the
> intended recipient (s). If you are not the intended recipient, please do
> not use or disseminate the information, notify the sender and delete it
> from your system.
>
>
>
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://libwebsockets.org/mailman/listinfo/libwebsockets
>



More information about the Libwebsockets mailing list