From 3c862a832ca819d6d6af3679440fcfe3c7b57877 Mon Sep 17 00:00:00 2001 From: Hiroshi Ichikawa Date: Sun, 3 Apr 2011 19:54:32 +0900 Subject: Updating README. --- README.md | 49 ++++++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 95e63f6..57e4c0c 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ Assuming you have Web server (e.g. Apache) running at **http://example.com/** . -1. Download web_socket.rb from: - [http://github.com/gimite/web-socket-ruby/tree/master](http://github.com/gimite/web-socket-ruby/tree/master) +1. Download [web_socket.rb](http://github.com/gimite/web-socket-ruby/tree/master). 2. Run sample Web Socket server (echo server) in example.com with: (#1) $ ruby web-socket-ruby/samples/echo_server.rb example.com 10081 3. If your server already provides socket policy file at port **843**, modify the file to allow access to port **10081**. Otherwise you can skip this step. See below for details. @@ -19,29 +18,29 @@ Assuming you have Web server (e.g. Apache) running at **http://example.com/** . 1. Copy swfobject.js, web_socket.js, WebSocketMain.swf to your application directory. 2. Write JavaScript code: - - - - - + + + + + 3. Put Flash socket policy file to your server unless you use web-socket-ruby or em-websocket as your WebSocket server. See "Flash socket policy file" section below for details. -- cgit v1.2.1