[Libwebsockets] How to handle multiple clients case (different endpoint)

Xi Chen leon6827chix at gmail.com
Wed Aug 1 18:13:56 CEST 2018


New to libwebsocket.
I went through the client examples, but could not find the answer.
In all client examples, I saw the following pattern with single server

while(1) {

lws is running in the same client thread context.

Can I open multiple HTTP connection in one client thread?
I read that lws is single thread, so I assume only one client thread? but
how to handle multiple multiple server endpoint?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20180801/c6f45bee/attachment.html>

More information about the Libwebsockets mailing list