Name Date Size

..25-Oct-20244 KiB

CMakeLists.txtH A D25-Oct-2024700

localhost-100y.certH A D25-Oct-20242.1 KiB

localhost-100y.keyH A D25-Oct-20243.2 KiB

minimal-ws-server.cH A D25-Oct-20243.4 KiB

mount-origin/H25-Oct-20244 KiB

protocol_lws_minimal.cH A D25-Oct-20243.7 KiB

README.mdH A D25-Oct-2024766

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