Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (21 sloc) 958 Bytes

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=""></script>	
    var socket = new EasyWebSocket("ws://");
    socket.onopen	= function(){
        socket.send("hello world.")
    socket.onmessage= function(event){

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!