auto get domain
This commit is contained in:
@@ -57,12 +57,10 @@ function ChangeWorkspacefileTree(fileTree) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// vscode.window.showInformationMessage('Connecting to server...');
|
||||
|
||||
vs_socket = io('vscode');
|
||||
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
||||
const host = window.location.host;
|
||||
vs_socket = io(`${protocol}//${host}/vscode`);
|
||||
vs_socket.on('connect', () => {
|
||||
// vscode.window.showInformationMessage('Connected to server');
|
||||
console.log('Connected to server');
|
||||
vs_socket.emit('login', { config: code_like_config });
|
||||
vs_socket.emit('load_chapter',{config: code_like_config})
|
||||
|
||||
Reference in New Issue
Block a user