blob: bc9af549950066b6db638d5a5de668fd283c5d73 [file] [log] [blame]
Andy Greenb2149772010-10-31 13:15:56 +00001Using test-server as a quickstart
2---------------------------------
3
Andy Green05a0a7b2010-10-31 17:51:39 +00004$ make
Andy Green7310e9c2010-11-01 09:12:17 +00005$ sudo make install
6$ libwebsockets-test-server
Andy Greenb2149772010-10-31 13:15:56 +00007
8should be enough to get a test server listening on port 7861.
9
10If you point your browser (eg, Chrome) to
11
12 http://127.0.0.1:7681
13
Andy Green7310e9c2010-11-01 09:12:17 +000014It will fetch "./test-server/test.html", and then run the
15script in there on the browser to open a websocket connection.
16Incrementing numbers should appear in the browser display.
Andy Greenb2149772010-10-31 13:15:56 +000017
18test-server.c is all that is needed to use libwebsockets for
19serving both the script html over http and websockets.
20
212010-10-31 Andy Green <andy@warmcat.com>
22