13 ms·
I have used this library before, it's a powerful library indeed but the documentation is a bit lacking. There isn't a straightforward guide to do the most commo
by ncann 5y ago
I have used this library before, it's a powerful library indeed but the documentation is a bit lacking. There isn't a straightforward guide to do the most common operations, even the most simple ones like connecting a client to a server, and you're left with studying the various examples provided, each of them do things a little differently. There are also a lot of undocumented functions/constants/structs.
- ricardo81 5y agoI've also used it on occasion and would agree the documentation is patchy in some areas thought getting a running example is fairly trivial. e.g. when a TLS cert is renewed/replaced, how to deal with that in an already running websocket.
- deleted 5y ago[deleted]
- krona 5y agohttps://libwebsockets.org/git/libwebsockets/tree/minimal-examples/http-client/minimal-http-client/minimal-http-client.c https://libwebsockets.org/git/libwebsockets/tree/minimal-exa... I'd prefer this well written and working minimal example (one of many) to API documentation 99 times out of 100.
- letsgotothemoon 5y agoCheck out the "Secure Streams" of libwebsockets, it hides details of protocols specifics stuff (in the JSON policy) and easier to program network application (just deal with the abstracted states and payload in the callbacks). https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/secure-streams https://libwebsockets.org/git/libwebsockets/tree/minimal-exa... https://libwebsockets.org/git/libwebsockets/tree/lib/secure-streams https://libwebsockets.org/git/libwebsockets/tree/lib/secure-...