Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
CMakeLists.txt | D | 03-May-2024 | 2 KiB | 79 | 70 | |
README.md | D | 03-May-2024 | 1.3 KiB | 40 | 31 | |
libwebsockets.org.cer | D | 03-May-2024 | 3.5 KiB | 59 | 58 | |
minimal-ws-client.c | D | 03-May-2024 | 3.7 KiB | 150 | 92 | |
selftest.sh | D | 03-May-2024 | 537 | 26 | 4 |
README.md
1# lws minimal ws client rx 2 3## build 4 5``` 6 $ cmake . && make 7``` 8 9## usage 10 11The application goes to https://libwebsockets.org and makes a wss connection 12using the dumb-increment-protocol. It shows the incrementing number it is 13being sent over ws as it arrives. 14 15This example only receives things to keep it simple. See minimal-ws-client-tx 16for code related to sending things. Of course rx and tx are supported in the 17same protocol. 18 19``` 20./lws-minimal-ws-client-rx 21[2018/03/14 11:57:24:0689] USER: LWS minimal ws client rx 22[2018/03/14 11:57:24:0705] NOTICE: Creating Vhost 'default' port -1, 1 protocols, IPv6 off 23[2018/03/14 11:57:24:0710] NOTICE: created client ssl context for default 24[2018/03/14 11:57:24:0788] NOTICE: lws_client_connect_2: 0x15b8310: address libwebsockets.org 25[2018/03/14 11:57:24:7643] NOTICE: lws_client_connect_2: 0x15b8310: address libwebsockets.org 26[2018/03/14 11:57:26:9191] USER: RX: 0 27[2018/03/14 11:57:26:9318] USER: RX: 1 28[2018/03/14 11:57:27:2182] USER: RX: 2 29[2018/03/14 11:57:27:2336] USER: RX: 3 30[2018/03/14 11:57:27:2838] USER: RX: 4 31[2018/03/14 11:57:27:5173] USER: RX: 5 32[2018/03/14 11:57:27:5352] USER: RX: 6 33[2018/03/14 11:57:27:5854] USER: RX: 7 34[2018/03/14 11:57:27:8156] USER: RX: 8 35[2018/03/14 11:57:27:8359] USER: RX: 9 36^C[2018/03/14 11:57:27:9884] USER: Completed 37``` 38 39 40