Ops, forgot the static files

pull/35/head
Peter 'Pita' Martischka 2011-06-23 14:09:41 +01:00
parent 80a478fd55
commit af57413cfa
3 changed files with 5 additions and 6 deletions

View File

@ -270,7 +270,7 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options) {
} }
function sendMessage(msg) { function sendMessage(msg) {
socket.send({type: "COLLABROOM", component: "pad", data: msg}); socket.json.send({type: "COLLABROOM", component: "pad", data: msg});
} }
function wrapRecordingErrors(catcher, func) { function wrapRecordingErrors(catcher, func) {

View File

@ -60,7 +60,7 @@ function randomString() {
function handshake() function handshake()
{ {
socket = new io.connect(); socket = io.connect();
socket.on('connect', function(){ socket.on('connect', function(){
var padId= document.URL.substring(document.URL.lastIndexOf("/")+1); var padId= document.URL.substring(document.URL.lastIndexOf("/")+1);
@ -80,7 +80,7 @@ function handshake()
"token": token, "token": token,
"protocolVersion": 2}; "protocolVersion": 2};
socket.send(msg); socket.json.send(msg);
}); });
var receivedClientVars=false; var receivedClientVars=false;

View File

@ -70,8 +70,7 @@
} }
//build up the socket io connection //build up the socket io connection
socket = new io.Socket(); socket = io.connect();
socket.connect();
//send the ready message once we're connected //send the ready message once we're connected
socket.on('connect', function() socket.on('connect', function()
@ -105,7 +104,7 @@
"token": token, "token": token,
"protocolVersion": 2}; "protocolVersion": 2};
socket.send(msg); socket.json.send(msg);
} }
var fireWhenAllScriptsAreLoaded = []; var fireWhenAllScriptsAreLoaded = [];