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