kopia lustrzana https://github.com/c9/core
Adding more vfs metrics, fixing bugs
rodzic
1ddffa375d
commit
5374effc0f
|
@ -78,6 +78,9 @@ define(function(require, exports, module) {
|
||||||
if (loaded) return false;
|
if (loaded) return false;
|
||||||
loaded = true;
|
loaded = true;
|
||||||
|
|
||||||
|
|
||||||
|
emit("loaded");
|
||||||
|
|
||||||
smith.debug = DEBUG;
|
smith.debug = DEBUG;
|
||||||
|
|
||||||
connection = connectClient(connectEngine, {
|
connection = connectClient(connectEngine, {
|
||||||
|
@ -114,7 +117,10 @@ define(function(require, exports, module) {
|
||||||
if (!pingUrl) return disconnect();
|
if (!pingUrl) return disconnect();
|
||||||
|
|
||||||
vfsEndpoint.isServerAlive(pingUrl, function(err, isAlive) {
|
vfsEndpoint.isServerAlive(pingUrl, function(err, isAlive) {
|
||||||
if (!err && isAlive) return callback(null, true);
|
if (!err && isAlive) {
|
||||||
|
emit("preConnectChecked");
|
||||||
|
return callback(null, true);
|
||||||
|
}
|
||||||
|
|
||||||
disconnect();
|
disconnect();
|
||||||
});
|
});
|
||||||
|
@ -279,6 +285,8 @@ define(function(require, exports, module) {
|
||||||
function onConnect() {
|
function onConnect() {
|
||||||
var transport = new smith.EngineIoTransport(connection);
|
var transport = new smith.EngineIoTransport(connection);
|
||||||
|
|
||||||
|
emit("onConnect");
|
||||||
|
|
||||||
if (consumer)
|
if (consumer)
|
||||||
consumer.disconnect();
|
consumer.disconnect();
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue