1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/README-test-server
Andy Green 05a0a7b02e add-kernel-doc-script-and-generated-api.txt
Signed-off-by: Andy Green <andy@warmcat.com>
2010-10-31 17:51:39 +00:00

21 lines
552 B
Text

Using test-server as a quickstart
---------------------------------
$ make
$ ./test-server
should be enough to get a test server listening on port 7861.
If you point your browser (eg, Chrome) to
http://127.0.0.1:7681
It will fetch "test.html", and then run the script in there
on the browser to open a websocket connection. Incrementing
numbers should appear in the browser display.
test-server.c is all that is needed to use libwebsockets for
serving both the script html over http and websockets.
2010-10-31 Andy Green <andy@warmcat.com>