mirror of
https://github.com/coder/code-server.git
synced 2024-12-05 07:13:06 +08:00
13 lines
406 B
TypeScript
13 lines
406 B
TypeScript
import { MainServer, WebviewServer } from "./server";
|
|
|
|
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);
|
|
});
|