Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
mount-origin/ | 03-May-2024 | - | 208 | 182 | ||
CMakeLists.txt | D | 03-May-2024 | 2 KiB | 80 | 70 | |
README.md | D | 03-May-2024 | 602 | 25 | 16 | |
minimal-ws-server-ring.c | D | 03-May-2024 | 2.6 KiB | 98 | 62 | |
protocol_lws_minimal.c | D | 03-May-2024 | 7.9 KiB | 315 | 191 |
README.md
1# lws minimal ws server (lws_ring) 2 3## build 4 5``` 6 $ cmake . && make 7``` 8 9## usage 10 11``` 12 $ ./lws-minimal-ws-server 13[2018/03/04 09:30:02:7986] USER: LWS minimal ws server (lws_ring) | visit http://localhost:7681 14[2018/03/04 09:30:02:7986] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 on 15``` 16 17Visit http://localhost:7681 on multiple browser windows 18 19Text you type in any browser window is sent to all of them. 20 21A ringbuffer holds up to 8 lines of text. 22 23This also demonstrates how the ringbuffer can take action against lagging or 24disconnected clients that cause the ringbuffer to fill. 25