this.socket.close();\r
\r
this.socket = null;\r
- this.connect();\r
- return;\r
-\r
- // To get around the allow-origin issues for requests, completely reload the\r
- // transport source from the new server\r
- window.io = null;\r
-\r
- // Path to get the socket.io transport code\r
- transport_path = _kiwi.app.kiwi_server + _kiwi.app.get('base_path') + '/transport/socket.io.js?ts='+(new Date().getTime());\r
- $script(transport_path, function() {\r
- if (!window.io) {\r
- return callback('err_kiwi_server_not_found');\r
- }\r
-\r
- that.set('kiwi_server', _kiwi.app.kiwi_server + '/kiwi');\r
- that.connect(callback);\r
- });\r
+ this.connect(callback);\r
};\r
\r
\r
password: connection_info.password\r
};\r
\r
+ connection_info.options = connection_info.options || {};\r
+\r
// A few optional parameters\r
if (connection_info.options.encoding)\r
server_info.encoding = connection_info.options.encoding;\r