Better HN
topnewbestaskshowjobs
Log inSign up

letsgotothemoon

2 karma · joined Sep 7, 2021 (5y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

IIUC, it needs extensive code coverage and it's even difficult for library (the lws case).

comment 5y ago · link · parent

Check 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-exa...

https://libwebsockets.org/git/libwebsockets/tree/lib/secure-...