Merge branch 'master' of bitbucket.org:jamkazam/jam-web
This commit is contained in:
commit
ded9045cf9
|
|
@ -69,7 +69,10 @@
|
|||
|
||||
// create a login message using token (a cookie or similiar)
|
||||
factory.login_with_token = function(token) {
|
||||
var login = { token : token };
|
||||
//context.JK.logger.debug("*** login_with_token: client_id = "+$.cookie("client_id"));
|
||||
var login = { token : token,
|
||||
client_id : $.cookie("client_id")
|
||||
};
|
||||
return client_container(msg.LOGIN, route_to.SERVER, login);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
|
||||
function loggedIn(header, payload) {
|
||||
app.clientId = payload.client_id;
|
||||
$.cookie('client_id', payload.client_id);
|
||||
var heartbeatMS = payload.heartbeat_interval * 1000;
|
||||
logger.debug("jamkazam.js.loggedIn(): clientId now " + app.clientId + "; Setting up heartbeat every " + heartbeatMS + " MS");
|
||||
heartbeatInterval = context.setInterval(_heartbeat, heartbeatMS);
|
||||
|
|
|
|||
Loading…
Reference in New Issue