• Home
Name Date Size #Lines LOC

..--

mount-origin/03-May-2024-191171

CMakeLists.txtD03-May-2024780 2621

README.mdD03-May-2024641 2617

localhost-100y.certD03-May-20242.1 KiB3534

localhost-100y.keyD03-May-20243.2 KiB5352

minimal-http-server-sse.cD03-May-20246.1 KiB234143

README.md

1# lws minimal http Server Side Events
2
3This demonstates serving both normal content and
4content over Server Side Events.
5
6## build
7
8```
9 $ cmake . && make
10```
11
12## usage
13
14You can give -s to listen using https on port :443
15
16```
17 $ ./lws-minimal-http-server-sse
18[2018/04/20 06:09:56:9974] USER: LWS minimal http Server-Side Events | visit http://localhost:7681
19[2018/04/20 06:09:57:0148] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off
20```
21
22Visit http://localhost:7681, which connects back to the server using SSE
23and displays the incoming data.  Connecting from multiple browsers shows
24content individual to the connection.
25
26