Fixed the login/out link in the corner. Filled in obvious gaps in error reporting.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3199 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2016-04-11 00:28:42 +00:00
parent 6fbd00bddf
commit 577606a0f9
2 changed files with 18 additions and 14 deletions

View File

@@ -174,9 +174,10 @@ function socket(request, response, client) {
packageOwner = match[1];
packageName = match[2];
}
response.send(JSON.stringify({action: "hello"}), 0x1);
var sessionId = makeSessionId();
response.send(JSON.stringify({lines: [{action: "session", sessionId: sessionId, credentials: credentials}]}), 0x1);
process = getSessionProcess(packageOwner, packageName, makeSessionId(), options);
process = getSessionProcess(packageOwner, packageName, sessionId, options);
process.terminal.readOutput(function(message) {
response.send(JSON.stringify(message), 0x1);
});