1 Using test-server as a quickstart
2 ---------------------------------
4 For a Fedora x86_86 box, the following config line was
7 ./configure --prefix=/usr --libdir=/usr/lib64 --enable-openssl
9 otherwise if /usr/local/... and /usr/local/lib are OK then...
11 $ ./configure --enable-openssl
14 $ libwebsockets-test-server
16 should be enough to get a test server listening on port 7861.
18 If you point your browser (eg, Chrome) to
22 It will fetch a script in the form of test.html, and then run the
23 script in there on the browser to open a websocket connection.
24 Incrementing numbers should appear in the browser display.
26 To test it using SSL/WSS, just run the test server with
28 $ libwebsockets-test-server --ssl
32 https://127.0.0.1:7681
34 The connection will be entirely encrypted using some generated
35 certificates that your browser will not accept, since they are
36 not signed by any real Certificate Authority. Just accept the
37 certificates in the browser and the connection will proceed
38 in first https and then websocket wss, acting exactly the
41 test-server.c is all that is needed to use libwebsockets for
42 serving both the script html over http and websockets.
44 2010-11-08 Andy Green <andy@warmcat.com>