Andy Green | b214977 | 2010-10-31 13:15:56 +0000 | [diff] [blame^] | 1 | Using test-server as a quickstart |
| 2 | --------------------------------- |
| 3 | |
| 4 | # make |
| 5 | # ./test-server |
| 6 | |
| 7 | should be enough to get a test server listening on port 7861. |
| 8 | |
| 9 | If you point your browser (eg, Chrome) to |
| 10 | |
| 11 | http://127.0.0.1:7681 |
| 12 | |
| 13 | It will fetch "test.html", and then run the script in there |
| 14 | on the browser to open a websocket connection. Incrementing |
| 15 | numbers should appear in the browser display. |
| 16 | |
| 17 | test-server.c is all that is needed to use libwebsockets for |
| 18 | serving both the script html over http and websockets. |
| 19 | |
| 20 | 2010-10-31 Andy Green <andy@warmcat.com> |
| 21 | |