code-server-2/entry.ts

13 lines
406 B
TypeScript
Raw Normal View History

2019-07-02 21:15:41 +00:00
import { MainServer, WebviewServer } from "./server";
2019-06-28 22:37:23 +00:00
2019-07-02 21:15:41 +00:00
const webviewServer = new WebviewServer();
const server = new MainServer(webviewServer);
webviewServer.listen(8444).then(async () => {
await server.listen(8443);
console.log(`Main server serving ${server.address}`);
console.log(`Webview server serving ${webviewServer.address}`);
}).catch((error) => {
console.error(error);
process.exit(1);
});