diff --git a/rt/localshell.ts b/rt/localshell.ts index ee49a59a..014ba0e6 100644 --- a/rt/localshell.ts +++ b/rt/localshell.ts @@ -7,7 +7,9 @@ module TDev { export function localProxyHandler() { return function (cmd, data) { if (cmd == "shell") return LocalShell.runShellAsync(data) - else if (cmd == "socket") return Promise.as({ url: mgmtUrl("").replace(/^http/, "ws") }) + else if (cmd == "socket") + return LocalShell.mgmtRequestAsync("stats") + .then(() => { return { url: mgmtUrl("").replace(/^http/, "ws") } }) else return LocalShell.mgmtRequestAsync("plugin/" + cmd, data) }; }