forked from zimbatm/nodejs-http-websocket
-
Notifications
You must be signed in to change notification settings - Fork 1
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
4749ef8
commit d8073ec
Showing
1 changed file
with
16 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
= Examples | ||
|
||
== Prerequisites | ||
|
||
Make sure to have a patched version of node. | ||
|
||
Run socketpolicy.pl as root. This is needed by the flash WebSocket implementation that lookups crossdomain policies on port 843 to ask for connection. | ||
|
||
== Examples | ||
|
||
* ping.js : a simple ping-back websocket server | ||
* chat.js : like ping but with connection broadcasting | ||
|
||
Run `node ping.js` and open http://localhost:8000/sample.html with Firefox (other browsers not yet tested) | ||
|
||
Some times, the page takes long to load (unknown bug). Try reloading. |