mirror of https://github.com/calzoneman/sync.git
Auto re-login guests upon reconnect
This commit is contained in:
parent
ccae0ea76e
commit
2769543d04
|
@ -22,6 +22,12 @@ Callbacks = {
|
||||||
session: SESSION
|
session: SESSION
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// Guest auto-relogin
|
||||||
|
else if(CLIENT.name) {
|
||||||
|
socket.emit("login", {
|
||||||
|
name: CLIENT.name
|
||||||
|
});
|
||||||
|
}
|
||||||
$("<div/>").addClass("server-msg-reconnect")
|
$("<div/>").addClass("server-msg-reconnect")
|
||||||
.text("Connected")
|
.text("Connected")
|
||||||
.appendTo($("#messagebuffer"));
|
.appendTo($("#messagebuffer"));
|
||||||
|
|
Loading…
Reference in New Issue