• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

CMakeLists.txtD23-Nov-20232 KiB7970

README.mdD23-Nov-20231.3 KiB4031

libwebsockets.org.cerD23-Nov-20233.5 KiB5958

minimal-ws-client.cD23-Nov-20233.7 KiB15092

selftest.shD23-Nov-2023537 264

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