Ops, forgot the static files

This commit is contained in:
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) {
socket.send({type: "COLLABROOM", component: "pad", data: msg});
socket.json.send({type: "COLLABROOM", component: "pad", data: msg});
}
function wrapRecordingErrors(catcher, func) {

View File

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

View File

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