Commit 8de463ce authored by ibuler's avatar ibuler

[Update] 支持重连机制

parent e6a09b8f
......@@ -2,7 +2,7 @@
import * as io from 'socket.io-client';
import {Terminal} from 'xterm';
export const TermWS = io.connect('/ssh', {'reconnection': false});
export const TermWS = io.connect('/ssh');
export const sep = '/';
export let Video: {
id: string,
......
......@@ -15,10 +15,6 @@ function formatTime(millis: number) {
const totalSeconds = Math.floor(millis / 1000);
const seconds = totalSeconds % 60;
const minutes = Math.floor(totalSeconds / 60);
console.log('1');
console.log('1');
console.log('1');
console.log('1');
return zeroPad(minutes, 2) + ':' + zeroPad(seconds, 2);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment