Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
like Websocket but no server setup and available in any browser
JavaScript ActionScript Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
contrib integrated super smooth multiple mouse on the homepage by @stagas
example little cleanup
gapp EasyWebSocket.serverUrl unified in gapp/node version + json2 include …
node little cleanup
CNAME refactoring
MIT-LICENSE.txt name fix, thanks stagas
Makefile little cleanup
README.md better doc + removed forgotten console.log
TODO.md more work on the -node (nodester deploy not yet done)
app.yaml g
easyWebSocket-gapp.min.js added ie8 support in example.html
easyWebSocket-node.min.js new build
easyWebSocket.min.js new build
index.html little cleanup
index.old.html

README.md

see the homepage

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.

How to use it

Include the following in your webpage and it just works.

<script src="http://EasyWebsocket.org/easyWebSocket.min.js"></script>   
<script>
    var socket = new EasyWebSocket("ws://example.com/resource");
    socket.onopen   = function(){
        socket.send("hello world.")
    }
    socket.onmessage= function(event){
        alert("received"+ event.data)
    }
</script>

Step 1: You connect the socket to a given url

Step 2: What you send() thru this socket is sent to all sockets connected the same url

See this code live. No server setup, no cross-origin issue to care about... It is that easy!

Something went wrong with that request. Please try again.