forked from joewalnes/websocketd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2aff2f6
commit 5a8b44e
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
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 |