Permalink
Browse files

better doc + removed forgotten console.log

	modified:   README.md
	modified:   iframe/main.js
  • Loading branch information...
1 parent fcd2845 commit f58f0cfd03600530b1789f4f51cc8296363a24a8 @jeromeetienne committed Feb 15, 2011
Showing with 9 additions and 5 deletions.
  1. +8 −4 README.md
  2. +1 −1 iframe/main.js
View
@@ -1,15 +1,16 @@
+see the [homepage](http://easywebsocket.org)
+
# Easy WebSocket
*like WebSocket but no server setup and available in any browser*
EasyWebSocket aims to make realtimes webapps in every browser without the trouble
to setup Websocket servers.
-The API is copied on [Websocket standard API](http://dev.w3.org/html5/websockets/).
# How to use it
-Just include the following in your webpage. see it [live](http://easywebsocket.org/example/example.html)
+Include the following in your webpage and it just works.
<script src="http://EasyWebsocket.org/easyWebSocket.min.js"></script>
<script>
@@ -21,7 +22,10 @@ Just include the following in your webpage. see it [live](http://easywebsocket.o
alert("received"+ event.data)
}
</script>
+
+*Step 1*: You connect the socket to a given url
-# Demo
+*Step 2*: What you send() thru this socket is sent to all sockets connected the same url
-I wrote a [chat demo](http://jeromeetienne.github.com/EasyWebsocket/example/demo.html) over EasyWebSocket
+See this code [live](http://easywebsocket.org/example/example.html). No server
+setup, no cross-origin issue to care about... It is that easy!
View
@@ -202,7 +202,7 @@ IframeMain.prototype.pingCallback = function(){
jQuery(function(){
- IframeMain.log = console.log.bind(console);
+ //IframeMain.log = console.log.bind(console);
var iframeMain = new IframeMain();
});

0 comments on commit f58f0cf

Please sign in to comment.