Configure auto reconnect on the frontend socket.
This commit is contained in:
parent
b20ea7aaa4
commit
0640d6ed8f
@ -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?)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user