Skip to content

Instantly share code, notes, and snippets.

View fox-alvarez's full-sized avatar

Fox Alvarez fox-alvarez

View GitHub Profile
@fox-alvarez
fox-alvarez / index.html
Created February 21, 2014 21:35
this is the configuration with which we are working, nginx v1.4.4, the error message is as follows "WebSocket is closed before the connection is established".
<script src="socket.io/socket.io.js"></script>
<script>
var websocket = io.connect("/");
$(document).on("ready", iniciar);
function iniciar(e)
{
websocket.emit('my other event', { my: 'data' });
}