• Home
Name Date Size #Lines LOC

..--

CMakeLists.txtD12-May-2024774 2621

README.mdD12-May-20241.2 KiB3829

minimal-ws-client-echo.cD12-May-20244.4 KiB173118

protocol_lws_minimal_client_echo.cD12-May-20247 KiB284212

README.md

1# lws minimal ws client + permessage-deflate echo
2
3This example opens a ws client connection to localhost:7681 and
4echoes back anything that comes from the server.
5
6You can use it for testing lws against Autobahn.
7
8## build
9
10```
11 $ cmake . && make
12```
13
14## usage
15
16Commandline option|Meaning
17---|---
18-d <loglevel>|Debug verbosity in decimal, eg, -d15
19-p port|Port to connect to
20-u url|URL path part to connect to
21-o|Finish after one connection
22--ssl|Open client connection with ssl
23-i <iface>|Bind the client connection to interface iface
24
25```
26 $ ./lws-minimal-ws-client-echo
27[2018/04/22 20:03:50:2343] USER: LWS minimal ws client echo + permessage-deflate + multifragment bulk message
28[2018/04/22 20:03:50:2344] USER:    lws-minimal-ws-client-echo [-n (no exts)] [-u url] [-o (once)]
29[2018/04/22 20:03:50:2344] USER: options 0
30[2018/04/22 20:03:50:2345] NOTICE: Creating Vhost 'default' (serving disabled), 1 protocols, IPv6 off
31[2018/04/22 20:03:51:2356] USER: connecting to localhost:9001//runCase?case=362&agent=libwebsockets
32[2018/04/22 20:03:51:2385] NOTICE: checking client ext permessage-deflate
33[2018/04/22 20:03:51:2386] NOTICE: instantiating client ext permessage-deflate
34[2018/04/22 20:03:51:2386] USER: LWS_CALLBACK_CLIENT_ESTABLISHED
35...
36```
37
38