Skip to content

Instantly share code, notes, and snippets.

@ericz
ericz / test.html
Created April 4, 2011 17:13
example for socket.io issue `Double connections with blocking `alert` or `prompt` during io.connect()`
<script src="http://localhost/socket.io/socket.io.js"></script>
<script>
var socket = new io.Socket('localhost');
socket.connect();
socket.on('connect', function(){
alert("connected");
})
socket.on('message', function(){ })