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
10000.7563114933436058Wikicontroltrue
Einloggenfalsenullfalsenull
robert2345
isnotloggedin
Logoutfalsenullfalsenull
12false9null
1false9null
2false9null
3false9null
4false9null
5false9null
6false9null
7false9null
8false9null
9false9null
10false9null
11false9null
3.152937293727756
0.1361356816555577
1.8849555921538759
100018.08573819702414-812
Sendfalsenullfalsenull
werwerwdwd
nulltrueagent=newWebChatClient()agent.broadcast({text:$morph('message').textString,channel:'bwinf'})/*Einloggen*/agent.useragent.setUser($morph('login').textString)if(!agent.isLoggedIn()){agent.login()}7truetruefalse14.399999999999999truetruefalse
false1truefalsenulltruetruefalse
nullfalsetruenullfalse
Codefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
nullfalsetruenullfalse
lively.webcollab.WebChatClient:onReceivefalsenullfalse
false
false
falsenullfalse
localrequirementsfalsetruefalse0false
initializerfalsetruefalse0false
lively.webcollab.WebChatClientfalsetruefalse0false
webcollabextensionsfalsetruefalse0false4082nullnulltruenullfalsenulltruetrue
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
makeRequestfalsetruefalse0false40810nullnulltruefalsenullnulltruetrue
1true
null
null
null
nulltruetrue
1true
nulltrueonReceive:function(json){$morph('messages').updateTextString(json.user+':'+json.message.text);},2truetrue2000000truetruetruetrue
Browseworld...falsenullfalsenull
Pushchangesbackfalsenullfalse
Refreshfalsenullfalse
Evalonfalsenullfalse
Sortfalsenullfalse
truetruenullfalsenullnullnullnullfalse
worldsavedtochat.xhtmlin1074ms16nullnull49