blob: bc9af549950066b6db638d5a5de668fd283c5d73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Using test-server as a quickstart
---------------------------------
$ make
$ sudo make install
$ libwebsockets-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-server/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>
|