Lively Kernel canvas
// this script is evaluated on world load
400)
this.error('Error in login/receive from stream. Message: ' + newText);
// newText can be a list of cr lf separated json messages
// call onLogin/onReceive just with one json obj at a time
var messages = newText.split('\r\n');
messages.pop(); // remove last empty string
messages.forEach(function(message) {
var json = lively.webcollab.parseJson(message);
if (reqTextPos === 0 || json.isLoginMessage /*FIXME under heavy load reqTextPos not 0 when login response arrives*/) {
this._isLoggedIn = json && json.isSuccess;
this.onLogin(req);
} else {
this.onReceive(json);
}
}, this);
}]]> 400) {
var json = JSON.unserialize(req.responseText);
this.error('Logout not successful ' + json.status);
}
this._isLoggedIn = false;
}]]> 400)
this.error('Error requesting active users');
var json = JSON.unserialize(req.responseText);
this.onGetActiveUsers(json.activeUsers);
}]]>= 400)
this.error('Failure issuing request. Status: ' + req.status + ' ' + req.responseText);
};
req.open(method, url, !sync);
req.send(content);
return req;
}]]>
ProgrammierenimWebmitLivelyKernel18null
savefalsenull
truenull
saveas...falsenullnull
null
10001.3396780654120604Wikicontroltrue
10007.772148776913553Wikicontroltrue
Loginfalsenullfalsenull
robert0.0029573216722442904
isloggedin
Logoutfalsenullfalsenull
test
Sendfalsenullfalsenull
gruppe3"TheBest":pwnd
nullfalsetruenullfalse
lively.webcollab.WebChatClient:channelfalsenullfalse
false
false
falsenullfalse
localrequirementsfalsetruefalse0false
initializerfalsetruefalse0false
lively.webcollab.WebChatClientfalsetruefalse0false
webcollabextensionsfalsetruefalse0false3102nullnulltruefalsenullnulltruetrue
1true
null
null
null
nulltruetrue
isLoggedInfalsetruefalse0false
userfalsetruefalse0false
channelfalsetruefalse0false
initializefalsetruefalse0false
isLoggedInfalsetruefalse0false
setUserfalsetruefalse0false
setChannelfalsetruefalse0false
onLoginfalsetruefalse0false
onLogoutfalsetruefalse0false
onStreamClosefalsetruefalse0false
onReceivefalsetruefalse0false
onSentDonefalsetruefalse0false
onGetActiveUsersfalsetruefalse0false
errorfalsetruefalse0false
loginfalsetruefalse0false
logoutfalsetruefalse0false
broadcastfalsetruefalse0false
getActiveUsersfalsetruefalse0false
resetfalsetruefalse0false
setupTestStreamfalsetruefalse0false
getDocumentfalsetruefalse0false
deleteDocumentfalsetruefalse0false
privateOnLoginAndReceivefalsetruefalse0false
privateOnStreamClosefalsetruefalse0false
privateOnLogoutfalsetruefalse0false
privateOnGetActiveUsersfalsetruefalse0false
testStreamCloseCbfalsetruefalse0false
performActionfalsetruefalse0false
makeRequestfalsetruefalse0false3102nullnulltruefalsenullnulltruetrue
1true
null
null
null
nulltruetrue
channel:null,truetrue2000000truetrue
1truetruetrue
Browseworld...falsenullfalse
Pushchangesbackfalsenullfalse
Refreshfalsenullfalse
Evalonfalsenullfalse
Sortfalsenullfalse
truetruenullfalsenullnullnullnullfalse
nulltrueagent=newWebChatClient()agent.user='robert'agent.channel='bwinf'agent.broadcast({text:$morph('send').textString,channel:'bwinf'})5truetruefalsetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalsenull48