This commit is contained in:
GitHub Merge Button 2012-01-22 06:25:39 -08:00
commit a5c1c2acdf
6 changed files with 65 additions and 28 deletions

3
static/js/pad2.js Normal file → Executable file
View file

@ -183,8 +183,9 @@ function handshake()
//find out in which subfolder we are
var resource = loc.pathname.substr(1, loc.pathname.indexOf("/p/")) + "socket.io";
//connect
console.log('create socket',url,resource)
socket = io.connect(url, {
resource: resource,
resource: 'socket.io',
'max reconnection attempts': 3
});