Imported Upstream version 3.2.0
[platform/upstream/libwebsockets.git] / minimal-examples / ws-server / minimal-ws-server-pmd / README.md
1 # lws minimal ws server + permessage-deflate
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 | visit http://localhost:7681
14 [2018/03/04 09:30:02:7986] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 on
15 ```
16
17 Visit http://localhost:7681 on multiple browser windows
18
19 Text you type in any browser window is sent to all of them.
20
21 For simplicity of this example, only one line of text is cached at the server.
22
23 The ws connection is made via permessage-deflate extension.