• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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