diff --git a/examples/nodejs/README.txt b/examples/nodejs/README.txt index 0f8a99c9..7faa7ea0 100644 --- a/examples/nodejs/README.txt +++ b/examples/nodejs/README.txt @@ -1,3 +1,5 @@ -This examples directory shows some examples written in Node.js. +## Running the examples on Mac -You can also test the command files by running from the command line. \ No newline at end of file +1. [download and install](https://github.com/joewalnes/websocketd/wiki/Download-and-install) websocketd and add it to your PATH +2. Echo Server: Run `websocketd --port=8080 --devconsole ./getter.js` and then go to http://localhost:8080 to interact with it +3. Count Server: Run `websocketd --port=8080 ./counter.js` to start the server, then go to [examples/html](https://github.com/joewalnes/websocketd/tree/master/examples/html) folder and double click **count.html** to open in a browser