start experimenting with a fallback layer

This commit is contained in:
Calvin Montgomery 2013-06-03 23:56:06 -04:00
parent 70f2065a36
commit 9eafc53c91
6 changed files with 226 additions and 0 deletions

View file

@ -835,6 +835,7 @@ Callbacks = {
}
}
/*
$.getScript(IO_URL+"/socket.io/socket.io.js", function() {
try {
socket = io.connect(IO_URL);
@ -846,3 +847,9 @@ $.getScript(IO_URL+"/socket.io/socket.io.js", function() {
Callbacks.disconnect();
}
});
*/
socket = new NotWebsocket();
for(var key in Callbacks) {
socket.on(key, Callbacks[key]);
}