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

@ -13,7 +13,6 @@ You can see an up-to-date copy of the master branch running on http://rewrite.mi
(There's also ```install.sh``` and ```start.sh```, but they may not for your installations.)
#### TODO
- Add auto-reconnect to frontend.
- Add public API (similiar to old server.json)
- Add ingame server, similiar to old mc.minetrack.me
- History graphs (database?)

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;