Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
mount-origin/ | 03-May-2024 | - | 208 | 182 | ||
CMakeLists.txt | D | 03-May-2024 | 2 KiB | 79 | 70 | |
README.md | D | 03-May-2024 | 766 | 31 | 21 | |
localhost-100y.cert | D | 03-May-2024 | 2.1 KiB | 35 | 34 | |
localhost-100y.key | D | 03-May-2024 | 3.2 KiB | 53 | 52 | |
minimal-ws-server.c | D | 03-May-2024 | 3.2 KiB | 118 | 78 | |
protocol_lws_minimal.c | D | 03-May-2024 | 4.4 KiB | 188 | 127 |
README.md
1# lws minimal ws server 2 3## build 4 5``` 6 $ cmake . && make 7``` 8 9## Commandline Options 10 11Option|Meaning 12---|--- 13-d|Set logging verbosity 14-s|Serve using TLS selfsigned cert (ie, connect to it with https://...) 15-h|Strict Host: header checking against vhost name (localhost) and port 16-v|Connection validity use 3s / 10s instead of default 5m / 5m10s 17 18## usage 19 20``` 21 $ ./lws-minimal-ws-server 22[2018/03/04 09:30:02:7986] USER: LWS minimal ws server | visit http://localhost:7681 23[2018/03/04 09:30:02:7986] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 on 24``` 25 26Visit http://localhost:7681 on multiple browser windows 27 28Text you type in any browser window is sent to all of them. 29 30For simplicity of this example, only one line of text is cached at the server. 31