|
3 ani în urmă | |
---|---|---|
.. | ||
README.md | 3 ani în urmă | |
demowebsocket.lpi | 3 ani în urmă | |
demowebsocket.lpr | 3 ani în urmă | |
guest.png | 3 ani în urmă | |
index.html | 3 ani în urmă | |
serverconfig.js | 3 ani în urmă | |
style.css | 3 ani în urmă | |
you.png | 3 ani în urmă |
This demo is intended to run with the wsserver demo of the FPC websocket support example wsserver. It is a small chat server client.
To run it, run the FPC wsserver example application (see fcl-web/examples/websocket/server).
wsserver -p 8080
Edit the serverconfig.js and set the correct server URL:
var
serverConfig = {
"url": "ws://localhost:8080/"
};
(change port etc. to match your setup)
Compile the demowebsocket example using lazarus or pa2js.
run simpleserver (or any other webserver) in this directory:
simpleserver -p 3000
and point your browser at port 3000:
http://localhost:3000/