You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
370 B
JavaScript

var socket,
config;
(function() {
$.ajax({
url: 'config.json?v=' + new Date().getTime(),
success: function(data) {
config = data;
socket = io.connect('http://' + config.socket.address + config.socket.port? ':' + config.socket.port : '');
socket.on('event:connect', function(data) {
});
},
async: false
});
}());