Skip to content

Instantly share code, notes, and snippets.


Fox Alvarez fox-alvarez

View GitHub Profile
fox-alvarez / index.html
Created Feb 21, 2014
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".
View index.html
<script src=""></script>
var websocket = io.connect("/");
$(document).on("ready", iniciar);
function iniciar(e)
websocket.emit('my other event', { my: 'data' });