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

..--

mount-origin/23-Nov-2023-208182

CMakeLists.txtD23-Nov-20232 KiB7970

README.mdD23-Nov-2023766 3121

localhost-100y.certD23-Nov-20232.1 KiB3534

localhost-100y.keyD23-Nov-20233.2 KiB5352

minimal-ws-server.cD23-Nov-20233.2 KiB11878

protocol_lws_minimal.cD23-Nov-20234.4 KiB188127

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