Configure auto reconnect on the frontend socket.

This commit is contained in:
Cryptkeeper
2015-11-26 00:32:20 -06:00
parent b20ea7aaa4
commit 0640d6ed8f
2 changed files with 5 additions and 2 deletions

View File

@ -160,7 +160,11 @@ function safeName(name) {
}
$(document).ready(function() {
var socket = io.connect();
var socket = io.connect({
'reconnect': true,
'reconnection delay': 1000,
'max reconnection attempts': 10
});
var mojangServicesUpdater;
var sortServersTask;